cnet's Application Programming Interface
- NAME
- CNET_format64 - format a 64-bit integer
- SYNOPSIS
#include <cnet.h>
char *CNET_format64(int64_t value);
- DESCRIPTION
-
Large 64-bit integers may always be formatted in ISO-C99
using the printf format specifier of "%lld".
However, as integer values become larger,
such as instances of CnetTime,
their readability is reduced.
CNET_format64 may be used to format the 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.
cnet also uses this function, internally,
to format large integers with commas on the GUI.
- RETURN VALUE
-
CNET_format64 returns a pointer to static storage containing the
64-bit integer formatted as a NULL-byte terminated string.
No errors are possible.
SEE ALSO
CNET_set_commas, and
CNET_get_commas.
|
cnet v3.3.4, written by Chris.McDonald@uwa.edu.au
Last modified: Tue Mar 1 7:43AM 2016