/*
 * urlcode.h
 *
 *  Created on: 18.01.2016
 *      Author: pavel
 */

#ifndef URLCODE_H_
#define URLCODE_H_

#include <stdint.h>

/* Returns a url-encoded version of str */
/* IMPORTANT: be sure that outbuf is big enougth */
char *url_encode(char *outbuf, uint32_t outlen, char *inbuf);

/* Returns a url-decoded version of str */
/* IMPORTANT:  be sure that outbuf is big enougth */
char *url_decode(char *outbuf, uint32_t outlen, char *inbuf);


#endif /* URLCODE_H_ */
