Lines Matching defs:buf
951 char *buf;
960 s->buf = s->tmpbuf;
966 if (s->buf != s->tmpbuf)
967 free(s->buf);
974 if (s->buf == s->tmpbuf) {
975 s->buf = malloc(nalloc);
976 if (s->buf == NULL)
978 memcpy(s->buf, s->tmpbuf, s->alloc);
980 char *ptr = realloc(s->buf, nalloc);
983 s->buf = ptr;
987 s->buf[s->idx++] = c;
995 memcpy(dst, s->buf, s->idx);
3964 char *buf = NULL, errbuf[256];
4015 buf = malloc(len);
4016 if (! buf) {
4020 snprintf(buf, len, "snd_config_hook_%s", str);
4021 buf[len-1] = '\0';
4022 func_name = buf;
4047 free(buf);
5124 char *buf = NULL, errbuf[256];
5174 buf = malloc(len);
5175 if (! buf) {
5179 snprintf(buf, len, "snd_func_%s", str);
5180 buf[len-1] = '\0';
5181 func_name = buf;
5210 free(buf);
5365 char *buf = _buf;
5380 free(buf);
5390 memcpy(*val, buf, idx);
5393 free(buf);
5401 buf = malloc(alloc);
5402 if (!buf)
5404 memcpy(buf, _buf, old_alloc);
5406 char *buf2 = realloc(buf, alloc);
5408 free(buf);
5411 buf = buf2;
5414 buf[idx++] = c;
5519 char buf[256];
5520 const char *var = buf;
5532 assert(varlen < sizeof(buf));
5533 memcpy(buf, str, varlen);
5534 buf[varlen] = 0;
5536 sprintf(buf, "%d", arg);