diff options
Diffstat (limited to 'src/microhttpd/mhd_str.h')
-rw-r--r-- | src/microhttpd/mhd_str.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index 09c63578..6455d84e 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -457,5 +457,18 @@ MHD_uint8_to_str_pad (uint8_t val, | |||
457 | char *buf, | 457 | char *buf, |
458 | size_t buf_size); | 458 | size_t buf_size); |
459 | 459 | ||
460 | /** | ||
461 | * Convert @a size bytes from input binary data to lower case | ||
462 | * hexadecimal digits, zero-terminate the result. | ||
463 | * @param bin the pointer to the binary data to convert | ||
464 | * @param size the size in bytes of the binary data to convert | ||
465 | * @param hex the output buffer, but be at least 2 * @a size + 1 | ||
466 | * @return The number of characters written to the output buffer, | ||
467 | * not including terminating zero. | ||
468 | */ | ||
469 | size_t | ||
470 | MHD_bin_to_hex (const void *bin, | ||
471 | size_t size, | ||
472 | char *hex); | ||
460 | 473 | ||
461 | #endif /* MHD_STR_H */ | 474 | #endif /* MHD_STR_H */ |