blob: e27f8f8f988602415ea2051b47dc402bc08a870c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _URLENCODE_H_
#define _URLENCODE_H_
#include "picohttpparser/picohttpparser.h"
struct field {
struct string name;
struct string value;
};
/**
* decode given x-form-urlencoded string. Breaks constness rules by
* casting the const char* s from str to char* and modifying it, then
* populating out with pointers into it, so make sure the memory
* is actually writable.
*/
void urldecode(struct string* str, struct field *out, size_t *out_num);
#endif
|