summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.h
diff options
context:
space:
mode:
Diffstat (limited to 'scan_urlencoded_query.h')
-rw-r--r--scan_urlencoded_query.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/scan_urlencoded_query.h b/scan_urlencoded_query.h
index 83f9be0..7663278 100644
--- a/scan_urlencoded_query.h
+++ b/scan_urlencoded_query.h
@@ -8,23 +8,26 @@
8#define SCAN_SEARCHPATH_PARAM 1 8#define SCAN_SEARCHPATH_PARAM 1
9#define SCAN_SEARCHPATH_VALUE 2 9#define SCAN_SEARCHPATH_VALUE 2
10 10
11// string pointer to source, pointer to after terminator on return 11/* string pointer to source, pointer to after terminator on return
12// deststring pointer to destination 12 deststring pointer to destination
13// flags determines, what to parse 13 flags determines, what to parse
14// returns number of valid converted characters in deststring 14 returns number of valid converted characters in deststring
15// or -1 for parse error 15 or -1 for parse error
16*/
16size_t scan_urlencoded_query(char **string, char *deststring, int flags); 17size_t scan_urlencoded_query(char **string, char *deststring, int flags);
17 18
18// data pointer to len chars of string 19/* data pointer to len chars of string
19// len length of chars in data to parse 20 len length of chars in data to parse
20// number number to receive result 21 number number to receive result
21// returns number of bytes not parsed, mostly !=0 means fail 22 returns number of bytes not parsed, mostly !=0 means fail
23*/
22size_t scan_fixed_int( char *data, size_t len, int *number ); 24size_t scan_fixed_int( char *data, size_t len, int *number );
23 25
24// data pointer to len chars of string 26/* data pointer to len chars of string
25// len length of chars in data to parse 27 len length of chars in data to parse
26// ip buffer to receive result 28 ip buffer to receive result
27// returns number of bytes not parsed, mostly !=0 means fail 29 returns number of bytes not parsed, mostly !=0 means fail
30*/
28size_t scan_fixed_ip( char *data, size_t len, unsigned char ip[4] ); 31size_t scan_fixed_ip( char *data, size_t len, unsigned char ip[4] );
29 32
30#endif 33#endif