SynopsisDecode a string using the basic encoding scheme (base 64). Prototype#include "webs.h" int websDecode64(char_t *outbuf, char_t *string, int outlen); Parameters
DescriptionThe websDecode64 procedure decodes the string argument into the supplied outbuf buffer. websDecode64 can decode in-situ, i.e., outbuf and string can be the same. Return ValueReturns 0 if successful; returns -1 if the string was not a valid base 64 encoded string. ExamplewebsEncode64(encoded, "String with special characters \" %", sizeof(encoded)); websDecode64(decoded, encoded, sizeof(decoded)); Stability ClassificationStable. See Also |