diff options
Diffstat (limited to 'src/microhttpd/mhd_str.h')
-rw-r--r-- | src/microhttpd/mhd_str.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index 0bd46444..27764f01 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -361,4 +361,34 @@ MHD_str_to_uvalue_n_ (const char *str, | |||
361 | 361 | ||
362 | #endif /* MHD_FAVOR_SMALL_CODE */ | 362 | #endif /* MHD_FAVOR_SMALL_CODE */ |
363 | 363 | ||
364 | |||
365 | /** | ||
366 | * Convert uint32_t value to hexdecimal US-ASCII string. | ||
367 | * @note: result is NOT zero-terminated. | ||
368 | * @param val the value to convert | ||
369 | * @param buf the buffer to result to | ||
370 | * @param buf_size size of the @a buffer | ||
371 | * @return number of charters has been put to the @a buf, | ||
372 | * zero if buffer is too small (buffer may be modified). | ||
373 | */ | ||
374 | size_t | ||
375 | MHD_uint32_to_strx (uint32_t val, | ||
376 | char *buf, | ||
377 | size_t buf_size); | ||
378 | |||
379 | |||
380 | /** | ||
381 | * Convert uint16_t value to decimal US-ASCII string. | ||
382 | * @note: result is NOT zero-terminated. | ||
383 | * @param val the value to convert | ||
384 | * @param buf the buffer to result to | ||
385 | * @param buf_size size of the @a buffer | ||
386 | * @return number of charters has been put to the @a buf, | ||
387 | * zero if buffer is too small (buffer may be modified). | ||
388 | */ | ||
389 | size_t | ||
390 | MHD_uint16_to_str (uint16_t val, | ||
391 | char *buf, | ||
392 | size_t buf_size); | ||
393 | |||
364 | #endif /* MHD_STR_H */ | 394 | #endif /* MHD_STR_H */ |