l64a() — Convert long to base 64 string representation
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <stdlib.h>
char *l64a(long value);
General description
The l64a()
function converts a long integer into its corresponding base 64 character
representation. In this notation, long integers are represented by
up to 6 characters, each character representing a digit in base 64
notation. The following characters are used to represent digits:
- Character
- Digit represented
- .
- 0
- /
- 1
- 0-9
- 2-11
- A-Z
- 12-37
- a-z
- 38-63
Returned value
l64a() returns a pointer to the base 64 representation of value. If value is zero, l64a() returns a pointer to a NULL string.
l64a() returns a pointer to a static buffer, which will be overwritten by subsequent calls. Buffers are allocated on a per-thread basis.
There are no errno values defined.