C Standard Library Extensions
1.2.3
|
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
cxchar * cx_line_alloc(void)
Allocate a line buffer with the maximum size supported by the system.
Definition: cxutils.c:497
cxbool cx_memory_is_system_malloc(void)
Check if the system's defaults are used for memory allocation.
Definition: cxmemory.c:526
void cx_program_set_name(const cxchar *name)
Set the name of the application.
Definition: cxutils.c:125
cxint cx_vsnprintf(cxchar *string, cxsize n, const cxchar *format, va_list args)
Safe version of vsprintf().
Definition: cxutils.c:285
cxint cx_asprintf(cxchar **string, const cxchar *format,...)
Write formatted output to a newly allocated string.
Definition: cxutils.c:336
cxptr cx_malloc(cxsize nbytes)
Allocate nbytes bytes.
Definition: cxmemory.c:280
void cx_free(cxptr memory)
Memory block deallocation.
Definition: cxmemory.c:486
const cxchar * cx_program_get_name(void)
Get the name of the application.
Definition: cxutils.c:97
cxptr cx_calloc(cxsize natoms, cxsize nbytes)
Allocate memory for natoms elements of size size.
Definition: cxmemory.c:380
cxint cx_bits_rfind(cxuint32 mask, cxint start)
Get the position of the first bit set, searching from right to left.
Definition: cxutils.c:192
cxlong cx_line_max(void)
Get the maximum length of a line supported by the system.
Definition: cxutils.c:470
cxint cx_bits_find(cxuint32 mask, cxint start)
Get the position of the first bit set, searching from left to right.
Definition: cxutils.c:156
cxchar * cx_strdup(const cxchar *string)
Duplicate a string.
Definition: cxstrutils.c:497
cxint cx_snprintf(cxchar *string, cxsize n, const cxchar *format,...)
Safe version of sprintf().
Definition: cxutils.c:240