#define TRUNCATED(s) s[-1] struct query{ int method; int length; /* Content length. */ char *string; } query; enum method{ GET, POST }; char *nextparam(enum method, int *, int); void setquery(void); char *split(char *); int urldecode(char *, int);