ucx
UAP Common Extensions
|
Wrapper for write functions with a printf-like interface. More...
Go to the source code of this file.
Macros | |
#define | cx_asprintf(fmt, ...) cx_asprintf_a(cxDefaultAllocator, fmt, __VA_ARGS__) |
A asprintf like function which allocates space for a string the result is written to. | |
#define | cx_vasprintf(fmt, ap) cx_vasprintf_a(cxDefaultAllocator, fmt, ap) |
A vasprintf like function which allocates space for a string the result is written to. | |
#define | cx_bprintf(buffer, fmt, ...) |
A printf like function which writes the output to a CxBuffer. | |
Functions | |
int | cx_fprintf (void *stream, cx_write_func wfc, char const *fmt,...) |
A fprintf like function which writes the output to a stream by using a write_func. | |
int | cx_vfprintf (void *stream, cx_write_func wfc, char const *fmt, va_list ap) |
A vfprintf like function which writes the output to a stream by using a write_func. | |
cxmutstr | cx_asprintf_a (CxAllocator const *allocator, char const *fmt,...) |
A asprintf like function which allocates space for a string the result is written to. | |
cxmutstr | cx_vasprintf_a (CxAllocator const *allocator, char const *fmt, va_list ap) |
A vasprintf like function which allocates space for a string the result is written to. | |
Wrapper for write functions with a printf-like interface.
#define cx_asprintf | ( | fmt, | |
... | |||
) | cx_asprintf_a(cxDefaultAllocator, fmt, __VA_ARGS__) |
A asprintf
like function which allocates space for a string the result is written to.
fmt | format string |
... | additional arguments |
#define cx_bprintf | ( | buffer, | |
fmt, | |||
... | |||
) |
A printf
like function which writes the output to a CxBuffer.
buffer | a pointer to the buffer the data is written to |
fmt | the format string |
... | additional arguments |
#define cx_vasprintf | ( | fmt, | |
ap | |||
) | cx_vasprintf_a(cxDefaultAllocator, fmt, ap) |
A vasprintf
like function which allocates space for a string the result is written to.
fmt | format string |
ap | argument list |
cxmutstr cx_asprintf_a | ( | CxAllocator const * | allocator, |
char const * | fmt, | ||
... | |||
) |
A asprintf
like function which allocates space for a string the result is written to.
allocator | the CxAllocator used for allocating the string |
fmt | format string |
... | additional arguments |
int cx_fprintf | ( | void * | stream, |
cx_write_func | wfc, | ||
char const * | fmt, | ||
... | |||
) |
A fprintf
like function which writes the output to a stream by using a write_func.
stream | the stream the data is written to |
wfc | the write function |
fmt | format string |
... | additional arguments |
cxmutstr cx_vasprintf_a | ( | CxAllocator const * | allocator, |
char const * | fmt, | ||
va_list | ap | ||
) |
A vasprintf
like function which allocates space for a string the result is written to.
allocator | the CxAllocator used for allocating the string |
fmt | format string |
ap | argument list |
int cx_vfprintf | ( | void * | stream, |
cx_write_func | wfc, | ||
char const * | fmt, | ||
va_list | ap | ||
) |
A vfprintf
like function which writes the output to a stream by using a write_func.
stream | the stream the data is written to |
wfc | the write function |
fmt | format string |
ap | argument list |