hyle/url.h(3)libhyle

NAME

hyle/url.h - Query-string parameter extraction without input mutation.

SYNOPSIS

#include <stddef.h>

Functions

size_t hyle_qs_param (const char *qs, const char *key, char *out, size_t out_sz)

Extract a query-string parameter without modifying the input.

Detailed Description

Query-string parameter extraction without input mutation.

Function Documentation

size_t hyle_qs_param (const char * qs, const char * key, char * out, size_t out_sz)

Extract a query-string parameter without modifying the input. Finds key in the query string and URL-decodes its value (XX hex escapes and '+' as space) into out.

Parameters

qs Query string to scan.
key Parameter name to look up.
out Destination buffer for the decoded value.
out_sz Capacity of out.

Returns

Bytes written; 0 when the key is absent or an argument is invalid. out is always NUL-terminated when out_sz > 0.

Author

Generated automatically by Doxygen for libhyle from the source code.