diff options
author | erdgeist <> | 2006-12-14 02:44:50 +0000 |
---|---|---|
committer | erdgeist <> | 2006-12-14 02:44:50 +0000 |
commit | 688a4edd9e489de26a9b53ea79f513e6461c7533 (patch) | |
tree | 25cb8c040bf69fbb350a602950528f5f15addd61 /scan_urlencoded_query.c | |
parent | c0f667defe1efd74b98e283aad635eed5092475e (diff) |
Now actually seems to work for the most parts
Added scraping
Added graceful disconnect
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 | } | ||