Lines Matching defs:buf_ptr
17 static char *buf_ptr;
34 buf_ptr = malloc(buf_len = 4096);
36 if (buf_ptr == 0)
45 len = (size_t) vsnprintf(buf_ptr, buf_len, fmt, args);
49 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2);
52 free(buf_ptr);
53 buf_ptr = 0;
56 buf_ptr = new_ptr;
62 len = (size_t) vsprintf(buf_ptr, fmt, args);
91 memcpy(s->ptr, buf_ptr, len);
202 free(buf_ptr);
203 buf_ptr = 0;