5 #include "portability.h"
8 pcap_vasprintf(char **strp, const char *format, va_list args)
15 len = _vscprintf(format, args);
21 str = malloc(str_size);
26 ret = pcap_vsnprintf(str, str_size, format, args);
34 * pcap_vsnprintf() shouldn't truncate the string, as we have
35 * allocated a buffer large enough to hold the string, so its
36 * return value should be the number of characters printed.
42 pcap_asprintf(char **strp, const char *format, ...)
47 va_start(args, format);
48 ret = pcap_vasprintf(strp, format, args);