diff options
Diffstat (limited to 'scan_urlencoded_query.c')
-rw-r--r-- | scan_urlencoded_query.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c index 3ac01cd..7bd5ee1 100644 --- a/scan_urlencoded_query.c +++ b/scan_urlencoded_query.c | |||
@@ -49,3 +49,9 @@ size_t scan_urlencoded_query(char **string, char *deststring, int flags) { | |||
49 | *string = (char *)s; | 49 | *string = (char *)s; |
50 | return d - (unsigned char*)deststring; | 50 | return d - (unsigned char*)deststring; |
51 | } | 51 | } |
52 | |||
53 | size_t scan_fixed_int( char *data, size_t len, int *tmp ) { | ||
54 | *tmp = 0; | ||
55 | while( (len > 0) && (*data >= '0') && (*data <= '9') ) { --len; *tmp = 10**tmp + *data++-'0'; } | ||
56 | return len; | ||
57 | } | ||