60 const cxchar *, ...) CX_GNUC_PRINTF(3, 4);
62 const cxchar *, va_list) CX_GNUC_PRINTF(3, 0);
63 cxint
cx_asprintf(cxchar **, const cxchar *, ...) CX_GNUC_PRINTF(2, 3);
64 cxint
cx_vasprintf(cxchar **, const cxchar *, va_list) CX_GNUC_PRINTF(2, 0);
cxint cx_vsnprintf(cxchar *string, cxsize n, const cxchar *format, va_list args)
Safe version of vsprintf().
Definition: cxutils.c:293
const cxchar * cx_program_get_name(void)
Get the name of the application.
Definition: cxutils.c:105
cxlong cx_line_max(void)
Get the maximum length of a line supported by the system.
Definition: cxutils.c:478
cxint cx_asprintf(cxchar **string, const cxchar *format,...)
Write formatted output to a newly allocated string.
Definition: cxutils.c:344
cxint cx_bits_rfind(cxuint32, cxint)
Get the position of the first bit set, searching from right to left.
Definition: cxutils.c:200
cxint cx_bits_find(cxuint32, cxint)
Get the position of the first bit set, searching from left to right.
Definition: cxutils.c:164
cxint cxint cxint cxint cxchar * cx_line_alloc(void)
Allocate a line buffer with the maximum size supported by the system.
Definition: cxutils.c:505
void cx_program_set_name(const cxchar *)
Set the name of the application.
Definition: cxutils.c:133
cxint cx_snprintf(cxchar *string, cxsize n, const cxchar *format,...)
Safe version of sprintf().
Definition: cxutils.c:248
cxint cx_vasprintf(cxchar **string, const cxchar *format, va_list args)
Write formatted output to a newly allocated string with a variable-length argument list...
Definition: cxutils.c:388