Lines Matching defs:buf
289 static const char *tftp_option_get(const char *buf, size_t len,
294 loc = tftp_strnlen(buf, len);
299 *option = buf;
301 loc += tftp_strnlen(buf + loc, len-loc);
306 *value = &buf[strlen(*option) + 1];
308 return &buf[loc];
385 char *buf, const char *option)
389 strcpy(buf, option);
485 char buf[64];
488 msnprintf(buf, sizeof(buf), "%" CURL_FORMAT_CURL_OFF_T,
491 strcpy(buf, "0"); /* the destination is large enough */
498 (char *)state->spacket.data + sbytes, buf);
501 msnprintf(buf, sizeof(buf), "%d", state->requested_blksize);
508 (char *)state->spacket.data + sbytes, buf);
511 msnprintf(buf, sizeof(buf), "%d", state->retry_time);
518 (char *)state->spacket.data + sbytes, buf);