| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflhttp.h" DESCR * http_query2descr ( const char *query)
Parses a HTTP query string, and returns the values as a DESCR block, composed of null-delimited strings with an empty string at the end. See strt2descr() and http query2symb() for more details. Returns the address of the allocated descriptor, or NULL if there was not enough memory.
{ char **strings; /* Formatted string array */ DESCR *descr; /* Returned descriptor */ strings = http query2strt (query); if (strings) { descr = strt2descr (strings); strtfree (strings); return (descr); } else return (NULL); /* Couldn't create string table */ }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |