.TH "hyle/url.h" 3 "libhyle" \" -*- nroff -*- .ad l .nh .SH NAME hyle/url.h \- Query-string parameter extraction without input mutation\&. .SH SYNOPSIS .br .PP \fR#include \fP .br .SS "Functions" .in +1c .ti -1c .RI "size_t \fBhyle_qs_param\fP (const char *qs, const char *key, char *out, size_t out_sz)" .br .RI "Extract a query-string parameter without modifying the input\&. " .in -1c .SH "Detailed Description" .PP Query-string parameter extraction without input mutation\&. .SH "Function Documentation" .PP .SS "size_t hyle_qs_param (const char * qs, const char * key, char * out, size_t out_sz)" .PP Extract a query-string parameter without modifying the input\&. Finds \fRkey\fP in the query string and URL-decodes its value (XX hex escapes and '+' as space) into out\&. .PP \fBParameters\fP .RS 4 \fIqs\fP Query string to scan\&. .br \fIkey\fP Parameter name to look up\&. .br \fIout\fP Destination buffer for the decoded value\&. .br \fIout_sz\fP Capacity of out\&. .RE .PP \fBReturns\fP .RS 4 Bytes written; 0 when the key is absent or an argument is invalid\&. out is always NUL-terminated when out_sz > 0\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle from the source code\&.