5 https://git.automotivelinux.org/src/libafb-helpers/plain/docs/escape.md?h=master
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/afb-helpers-function-references-afb-helpers-book.yml -->
10 # Escaping helpers functions reference
12 ## char *escape_url(const char *base, const char *path, const char * const *args, size_t *length)
14 Escape an `url` and `arguments` and returned it as a string.
16 * `base`: representing the FQDN of the url.
17 * `path`: the path to the requested page.
18 * `args`: optionnal array of arguments provided for the GET request.
19 * `length`: length of the returned `url`.
21 Returns the escaped `url`.
23 ## const char *escape_args(const char * const *args, size_t *length)
25 Escape an array of arguments and returned the lenght of the escaped arguments
28 * `args`: array of arguments provided for the GET request.
29 * `length`: length of the returned `arguments`.
31 Returns the escaped `arguments`.
33 ## const char *escape_str(const char *str, size_t *length)
35 Escape a string and returns it.
37 * `str`: the string to escape.
38 * `length`: length of the returned string.
40 Returns the escaped string.
42 ## const char **unescape_args(const char *args)
44 Unescape an argument and returns it.
46 * `args`: the argument to unescape.