Lines Matching refs:buf
124 char *buf = NULL;
129 return (buf);
132 buf = malloc(len +1);
133 if (buf) {
135 (void) strcpy(buf, "");
137 (void) memcpy(buf, ctx->ptr, len);
139 *(buf + len) = '\0';
148 return (buf);
171 ndmp_door_put_string(ndmp_door_ctx_t *ctx, char *buf)
175 if (!buf)
178 len = strlen(buf);
186 (void) memcpy(ctx->ptr, buf, len);
195 ndmp_door_free_string(char *buf)
197 free(buf);
296 ndmp_door_get_buf(ndmp_door_ctx_t *ctx, unsigned char *buf, int bufsize)
300 if (!buf)
311 (void) memcpy(buf, ctx->ptr, len);