Lines Matching refs:buf
58 #define SBFREE(buf) free(buf)
65 #define SBFREE(buf) free(buf)
188 * If buf is non-NULL, it points to a static or already-allocated string
192 sbuf_newbuf(struct sbuf *s, char *buf, int length, int flags)
198 s->s_buf = buf;
221 * If buf is non-NULL, it points to a static or already-allocated string
225 sbuf_new(struct sbuf *s, char *buf, int length, int flags)
235 return (sbuf_newbuf(s, buf, length, flags));
240 if (sbuf_newbuf(s, buf, length, flags) == NULL) {
396 sbuf_put_bytes(struct sbuf *s, const char *buf, size_t len)
422 memcpy(&s->s_buf[s->s_len], buf, n);
427 buf += n;
442 sbuf_bcat(struct sbuf *s, const void *buf, size_t len)
445 sbuf_put_bytes(s, buf, len);
485 sbuf_bcpy(struct sbuf *s, const void *buf, size_t len)
492 return (sbuf_bcat(s, buf, len));