cnet v3.1.4

home
FAQ

cmdline options
topology files
attributes

datatypes
data structures
core API
support API

download/install

cnet's Application Programming Interface

NAME
CNET_set_commas, CNET_get_commas - manage the use of commas in formatting 64-bit integers

SYNOPSIS
#include <cnet.h>

bool CNET_set_commas(bool wanted);
bool CNET_get_commas(void);

DESCRIPTION
CNET_format64 may be used to format a 64-bit integer with commas included every 3 digits to increase the readability. The function CNET_set_commas may be used to enable or disable the inclusion of commas, and CNET_get_commas may be used to report if commas are currently being included.

RETURN VALUE
CNET_get_commas returns indication if commas will be included in subsequent formatting performed by CNET_format64.

CNET_set_commas returns a value indicating if commas were previously included in the formatting performed by CNET_format64.

SEE ALSO
CNET_format64.

cnet was written and is maintained by Chris McDonald (chris@csse.uwa.edu.au).

cnet development has been supported by an ACM-SIGCSE Special Project Grant, and an Australian Apple University Consortium Scholarship.