websEncode64 GoAhead WebServer API GoAhead 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

outbuf Output buffer
string Input string
outlen Output buffer length

Description

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.

Return Value

None

Example

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

See Also

websDecode64