Q_ENTRY* qDecodeQueryString ( Q_ENTRY entry,
const char *  query,
char  equalchar,
char  sepchar,
int *  count 
)

Parse URL encoded query string

Parameters:
entry a pointer of Q_ENTRY structure. NULL can be used
query URL encoded string
equalchar separater of key, value pair
sepchar separater of line
count if count is not NULL, a number of parsed entries are stored
Returns:
a pointer of Q_ENTRY if successful, otherwise returns NULL
 cont char query = "category=love&str=%C5%A5%B5%F0%C4%DA%B4%F5&sort=asc";
 Q_ENTRY entries = qDecodeQueryString(NULL, req->pszQueryString, '=', '&', NULL);
 printf("category = %s\n", qEntryGetStr(entries, "category"));
 printf("str = %s\n", qEntryGetStr(entries, "str"));
 printf("sort = %s\n", qEntryGetStr(entries, "sort"));
 qEntryFree(entries);

Definition at line 62 of file qEncode.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1