websEncode64GoAhead WebServer APIGoAhead EMF

Synopsis

Encode a string using the basic encoding scheme (base 64).

Prototype

 #include "webs.h"
 
 void websEncode64(char_t *outbuf, char_t *string, int outlen); 

Parameters

outbufOutput buffer.
stringInput string.
outlenOutput buffer length.

Description

The websEncode64 procedure encodes the string argument into the supplied outbuf buffer. websEncode64 can work in-situ, i.e., outbuf and string can be the same.

Return Value

None

Example

 websEncode64(encoded, "String with special characters \" %", sizeof(encoded)); 
    websDecode64(decoded, encoded, sizeof(decoded)); 

Stability Classification

Stable.

See Also

websDecode64