IXP_PRINT(3) | Library Functions Manual | IXP_PRINT(3) |
ixp_print, ixp_vprint, ixp_vsmprint
#include <ixp.h> int ixp_print(IxpCFid *fid, const char *fmt, ...); int ixp_vprint(IxpCFid *fid, const char *fmt, va_list args); char* (*ixp_vsmprint)(const char *fmt, va_list);
These functions act like the standard formatted IO functions. They write the result of the formatting to the file pointed to by C<fid>.
ixp_vsmprint(3) may be set to a function which will format its arguments and return a nul-terminated string allocated by malloc(3). The default formats its arguments as printf(3).
These functions return the number of bytes written. There is currently no way to detect failure.
2012 Dec | libixp Manual |