Standards
Standards / Extensions |
C or C++ |
Dependencies |
XPG4.2
Single UNIX Specification, Version 3
|
both |
|
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <stdlib.h>
long a64l(const char *string);
General description
The a64l() function
converts a string representation of a base 64 number into its corresponding
long value. It scans the string from left to right with the least
significant character on the left, decoding each character as a 6-bit
base 64 number. If the string pointed to by
string contains
more than six characters, a64l() uses only the first six. If the
first six characters of the string contain a NULL character, a64l()
uses only the characters preceding the first NULL. 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
If successful, a64l() returns
the long value resulting from conversion of the input string.
If
the string pointed to by string is NULL,
a64l() returns 0.
There are no errno values defined.