| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

http_query2descr

#include "sflhttp.h"
DESCR *
http_query2descr (
    const char *query)

Synopsis

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.

Source Code - (sflhttp.c)

{
    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     */
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation