size_twget_vasprintf(char**strp,constchar*fmt,va_listargs)Parametersstrp Pointer to hold the string output
fmt Printf-like format specifier
args va_list of arguments
Returns
Length of the string returned via strp or (size_t) -1 on error
Prints arguments to allocated memory and 0-terminates it. The string is returned via the first argument.
It has to be free()'d by the caller when it is no longer needed.
size_twget_asprintf(char**strp,constchar*fmt,...)Parametersstrp Pointer to hold the string output
fmt Printf-like format specifier
... List of arguments
Returns
Length of the string returned via strp
Prints arguments to allocated memory and 0-terminates it. The string is returned via the first argument.
It has to be free()'d by the caller when it is no longer needed.
char*wget_vaprintf(constchar*fmt,va_listargs)Parametersfmt Printf-like format specifier
args va_list of arguments
Returns
Pointer to 0-terminated string in memory
Prints arguments to memory and returns a pointer to allocated and 0-terminated chunk of memory. The
return value has to be free()'d by the caller when it is no longer needed.
char*wget_aprintf(constchar*fmt,...)Parametersfmt Printf-like format specifier
... List of arguments
Returns
Pointer to 0-terminated string in memory
Prints arguments to memory and returns a pointer to allocated and 0-terminated chunk of memory. The
return value has to be free()'d by the caller when it is no longer needed.
size_twget_vfprintf(FILE*fp,constchar*fmt,va_listargs)Parametersfp FILE pointer
fmt Printf-like format specifier
args List of arguments
Returns
Number of bytes written or -1 on error
Prints arguments to stream fp and returns number of bytes written.
size_twget_fprintf(FILE*fp,constchar*fmt,...)Parametersfp FILE pointer
fmt Printf-like format specifier
... List of arguments
Returns
Number of bytes written or -1 on error
Prints arguments to stream fp and returns number of bytes written.
size_twget_printf(constchar*fmt,...)Parametersfmt Printf-like format specifier
... List of arguments
Returns
Number of bytes written or -1 on error
Prints arguments to stdout and returns number of bytes written.
size_twget_vsnprintf(char*str,size_tsize,constchar*fmt,va_listargs)Parametersstr Destination buffer
size Size of str
fmt Printf-like format specifier
args List of arguments
Returns
Number of bytes written, or, on truncation, that would have been written
Prints arguments to buffer str and returns number of bytes written, or on truncation: that would have
been written.
If str is NULL the return value are the number of bytes that would have been written.
size_twget_snprintf(char*str,size_tsize,constchar*fmt,...)Parametersstr Destination buffer
size Size of str
fmt Printf-like format specifier
... List of arguments
Returns
Number of bytes written, or, on truncation, that would have been written
Prints arguments to buffer str and returns number of bytes written, or on truncation: that would have
been written.
If str is NULL the return value are the number of bytes that would have been written.