52 const cxchar *, ...) CX_GNUC_PRINTF(3, 4);
54 const cxchar *, va_list) CX_GNUC_PRINTF(3, 0);
55 cxint
cx_asprintf(cxchar **, const cxchar *, ...) CX_GNUC_PRINTF(2, 3);
56 cxint
cx_vasprintf(cxchar **, const cxchar *, va_list) CX_GNUC_PRINTF(2, 0);
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:380
cxlong cx_line_max(void)
Get the maximum length of a line supported by the system.
Definition: cxutils.c:470
const cxchar * cx_program_get_name(void)
Get the name of the application.
Definition: cxutils.c:97
cxint cx_bits_find(cxuint32, cxint)
Get the position of the first bit set, searching from left to right.
Definition: cxutils.c:156
cxint cx_vsnprintf(cxchar *string, cxsize n, const cxchar *format, va_list args)
Safe version of vsprintf().
Definition: cxutils.c:285
cxint cxint cxint cxint cxchar * cx_line_alloc(void)
Allocate a line buffer with the maximum size supported by the system.
Definition: cxutils.c:497
void cx_program_set_name(const cxchar *)
Set the name of the application.
Definition: cxutils.c:125
cxint cx_asprintf(cxchar **string, const cxchar *format,...)
Write formatted output to a newly allocated string.
Definition: cxutils.c:336
cxint cx_bits_rfind(cxuint32, cxint)
Get the position of the first bit set, searching from right to left.
Definition: cxutils.c:192
cxint cx_snprintf(cxchar *string, cxsize n, const cxchar *format,...)
Safe version of sprintf().
Definition: cxutils.c:240