websEncode64 | GoAhead WebServer API | GoAhead EMF |
Encode a string using the basic encoding scheme (base 64)
#include "webs.h" void websEncode64(char_t *outbuf, char_t *string, int outlen);
outbuf | Output buffer |
string | Input string |
outlen | Output buffer length |
The websEncode64 procedure encodes the string argument into the supplied outbuf buffer. websEncode64 can work in-situ. Ie. outbuf and string can be the same.
None
websEncode64(encoded, "String with special characters \" %", sizeof(encoded)); websDecode64(decoded, encoded, sizeof(decoded));