aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_str.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_str.h')
-rw-r--r--src/microhttpd/mhd_str.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
index 845e6389..5c519568 100644
--- a/src/microhttpd/mhd_str.h
+++ b/src/microhttpd/mhd_str.h
@@ -90,4 +90,38 @@ MHD_str_to_uint64_n_ (const char * str,
90 size_t maxlen, 90 size_t maxlen,
91 uint64_t * out_val); 91 uint64_t * out_val);
92 92
93
94/**
95 * Convert hexadecimal US-ASCII digits in string to number in size_t.
96 * Conversion stopped at first non-digit character.
97 * @param str string to convert
98 * @param out_val pointer to size_t to store result of conversion
99 * @return non-zero number of characters processed on succeed,
100 * zero if no digit is found, resulting value is larger
101 * then possible to store in size_t or @a out_val is NULL
102 */
103size_t
104MHD_strx_to_sizet_ (const char * str,
105 size_t * out_val);
106
107
108/**
109 * Convert not more then @a maxlen hexadecimal US-ASCII digits in string
110 * to number in size_t.
111 * Conversion stopped at first non-digit character or after @a maxlen
112 * digits.
113 * @param str string to convert
114 * @param maxlen maximum number of characters to process
115 * @param out_val pointer to size_t to store result of conversion
116 * @param next_char pointer to store pointer to character next to last
117 * converted digit, ignored if NULL
118 * @return non-zero number of characters processed on succeed,
119 * zero if no digit is found, resulting value is larger
120 * then possible to store in size_t or @a out_val is NULL
121 */
122size_t
123MHD_strx_to_sizet_n_ (const char * str,
124 size_t maxlen,
125 size_t * out_val);
126
93#endif /* MHD_STR_H */ 127#endif /* MHD_STR_H */