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.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
index e14a308e..845e6389 100644
--- a/src/microhttpd/mhd_str.h
+++ b/src/microhttpd/mhd_str.h
@@ -65,16 +65,13 @@ MHD_str_equal_caseless_n_ (const char * const str1,
65 * Conversion stopped at first non-digit character. 65 * Conversion stopped at first non-digit character.
66 * @param str string to convert 66 * @param str string to convert
67 * @param out_val pointer to uint64_t to store result of conversion 67 * @param out_val pointer to uint64_t to store result of conversion
68 * @param next_char pointer to store pointer to character next to last 68 * @return non-zero number of characters processed on succeed,
69 * converted digit, ignored if NULL 69 * zero if no digit is found, resulting value is larger
70 * @return non-zero if conversion succeed; zero if no digit is found, 70 * then possible to store in uint64_t or @a out_val is NULL
71 * value is larger then possible to store in uint64_t or
72 * @a out_val is NULL
73 */ 71 */
74int 72size_t
75MHD_str_to_uint64_ (const char * str, 73MHD_str_to_uint64_ (const char * str,
76 uint64_t * out_val, 74 uint64_t * out_val);
77 const char ** next_char);
78 75
79/** 76/**
80 * Convert not more then @a maxlen decimal US-ASCII digits in string to 77 * Convert not more then @a maxlen decimal US-ASCII digits in string to
@@ -82,17 +79,15 @@ MHD_str_to_uint64_ (const char * str,
82 * Conversion stopped at first non-digit character or after @a maxlen 79 * Conversion stopped at first non-digit character or after @a maxlen
83 * digits. 80 * digits.
84 * @param str string to convert 81 * @param str string to convert
82 * @param maxlen maximum number of characters to process
85 * @param out_val pointer to uint64_t to store result of conversion 83 * @param out_val pointer to uint64_t to store result of conversion
86 * @param next_char pointer to store pointer to character next to last 84 * @return non-zero number of characters processed on succeed,
87 * converted digit, ignored if NULL 85 * zero if no digit is found, resulting value is larger
88 * @return non-zero if conversion succeed; zero if no digit is found, 86 * then possible to store in uint64_t or @a out_val is NULL
89 * value is larger then possible to store in uint64_t or
90 * @a out_val is NULL
91 */ 87 */
92int 88size_t
93MHD_str_to_uint64_n_ (const char * str, 89MHD_str_to_uint64_n_ (const char * str,
94 size_t maxlen, 90 size_t maxlen,
95 uint64_t * out_val, 91 uint64_t * out_val);
96 const char ** next_char);
97 92
98#endif /* MHD_STR_H */ 93#endif /* MHD_STR_H */