uri_encode

uri_encode#

Functions

size_t uri_encode(const char *src, const size_t len, char *dst)#

Percent-encode src, which is a buffer of length len, and write the result to dst.

If dst is NULL, only return its expected length (minus one).

Returns the number of bytes written to dst, not including the terminating NUL.

size_t uri_decode(const char *src, const size_t len, char *dst)#

Percent-decode src, which is a buffer of length len, and write the result to dst.

If dst is NULL, only return its expected length (minus one).

Returns the number of bytes written to dst, not including the terminating NUL.