Lines Matching defs:buf
283 unsigned char buf[40];
305 len = snprintf((char *)buf, sizeof(buf), "%" PRIi64, (int64_t)now);
309 len = snprintf((char *)buf, sizeof(buf), "%" PRIi64, (int64_t)now);
318 len = strftime((char *)buf, sizeof(buf), "%b %d %H:%M:%S", tmp);
325 buf, NULL, NULL);
367 unsigned char buf[3];
371 coap_encode_var_safe(buf, sizeof(buf),
372 COAP_MEDIATYPE_TEXT_PLAIN), buf);
1001 unsigned char buf[BUFSIZE];
1107 buf, sizeof(buf)) < 0) {
1301 unsigned char buf[6]; /* space to hold encoded/decoded uints */
1345 /* Store media type of new resource in ct. We can use buf here
1347 memset(buf, 0, sizeof(buf));
1348 snprintf((char *)buf, sizeof(buf), "%d", dynamic_entry[i].media_type);
1349 /* ensure that buf is always zero-terminated */
1350 assert(buf[sizeof(buf) - 1] == '\0');
1351 buf[sizeof(buf) - 1] = '\0';
1354 coap_make_str_const((char *)buf),
1838 uint8_t *buf;
1850 buf = coap_malloc(statbuf.st_size+1);
1851 if (!buf) {
1856 if (fread(buf, 1, statbuf.st_size, f) != (size_t)statbuf.st_size) {
1858 coap_free(buf);
1861 buf[statbuf.st_size] = '\000';
1864 return buf;
2392 cmdline_read_user(char *arg, unsigned char **buf, size_t maxlen) {
2395 *buf = (unsigned char *)arg;
2397 (*buf)[len] = '\000';
2420 uint8_t *buf;
2426 buf = read_file_mem(oscore_conf_file, &length);
2427 if (buf == NULL) {
2431 file_mem.s = buf;
2452 coap_free(buf);
2481 cmdline_read_key(char *arg, unsigned char **buf, size_t maxlen) {
2484 *buf = (unsigned char *)arg;