summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.h
blob: 1e597451ab93de6d1e1c490e2aac0a049598a0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __SCAN_URLENCODED_QUERY_H__
#define __SCAN_URLENCODED_QUERY_H__

#define SCAN_PATH             0
#define SCAN_SEARCHPATH_PARAM 1
#define SCAN_SEARCHPATH_VALUE 2

// string     pointer to source, pointer to after terminator on return
// deststring pointer to destination
// flags      determines, what to parse
// returns    number of valid converted characters in deststring
//            or -1 for parse error
size_t scan_urlencoded_query(char **string, char *deststring, int flags);

#endif