mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-03 23:03:13 +07:00
Change the API to heap-allocate the string and get rid of a bunch of fat stack buffers. PUBLISHED_FROM=c793dc64a9a044a9769d92ea16859f5d704a2181
364 B
364 B
title, decl_name, symbol_kind, signature
| title | decl_name | symbol_kind | signature |
|---|---|---|---|
| mg_url_encode() | mg_url_encode | func | struct mg_str mg_url_encode(const struct mg_str src); |
URL-escape the specified string.
All non-printable characters are escaped, plus ._-$,;~()/.
Input need not be NUL-terminated, but the returned string is.
Returned string is heap-allocated and must be free()'d.