urlcode.h 475 B

12345678910111213141516171819202122
  1. /*
  2. * urlcode.h
  3. *
  4. * Created on: 18.01.2016
  5. * Author: pavel
  6. */
  7. #ifndef URLCODE_H_
  8. #define URLCODE_H_
  9. #include <stdint.h>
  10. /* Returns a url-encoded version of str */
  11. /* IMPORTANT: be sure that outbuf is big enougth */
  12. char *url_encode(char *outbuf, uint32_t outlen, char *inbuf);
  13. /* Returns a url-decoded version of str */
  14. /* IMPORTANT: be sure that outbuf is big enougth */
  15. char *url_decode(char *outbuf, uint32_t outlen, char *inbuf);
  16. #endif /* URLCODE_H_ */