compat#
auxiliary compatibility functions
Note that the declarations for the functions found in the compat-src/ subdirectory are provided in config.h.in.
Defines
-
asnprintf#
setenv() - change or add an environment variable realpath() - return the canonicalized absolute pathname snprintf() - write formatted output to sized buffer asprintf() - write formatted output to allocated buffer vsnprintf() - write formatted output to sized buffer vasprintf() - write formatted output to allocated buffer strdup() - duplicate a string strndup() - duplicate a string with a maximal size strcasecmp() - case insensitive string comparison strncasecmp() - case insensitive, length-limited string comparison strlcpy() - like strncpy(), but guarantees that
dst
is NUL-terminated strlcat() - like strncat(), but guarantees thatdst
is NUL-terminated asnprintf() - print to allocated string
-
vasnprintf#
asnprintf() - print to allocated string using va_list
-
asnpprintf#
asnprintf() - print to position
pos
in allocated string
-
vasnpprintf#
asnprintf() - print to position
pos
in allocated string using va_list
Functions
-
int rpl_asnprintf(char **buf, size_t *size, const char *fmt, ...)#
-
int rpl_vasnprintf(char **buf, size_t *size, const char *fmt, va_list ap)#
-
int rpl_asnpprintf(char **buf, size_t *size, size_t pos, const char *fmt, ...)#
-
int rpl_vasnpprintf(char **buf, size_t *size, size_t pos, const char *fmt, va_list ap)#