1A64L(3)                    Linux Programmer's Manual                   A64L(3)
2
3
4

NAME

6       a64l, l64a - convert between long and base-64
7

SYNOPSIS

9       #include <stdlib.h>
10
11       long a64l(char *str64);
12
13       char *l64a(long value);
14
15   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
16
17       a64l(), l64a(): _SVID_SOURCE || _XOPEN_SOURCE >= 500
18

DESCRIPTION

20       These  functions  provide a conversion between 32-bit long integers and
21       little-endian base-64 ASCII strings (of length zero to  six).   If  the
22       string  used  as  argument for a64l() has length greater than six, only
23       the first six bytes are used.  If the type long has more than 32  bits,
24       then  l64a() uses only the low order 32 bits of value, and a64l() sign-
25       extends its 32-bit result.
26
27       The 64 digits in the base-64 system are:
28
29              '.'  represents a 0
30              '/'  represents a 1
31              0-9  represent  2-11
32              A-Z  represent 12-37
33              a-z  represent 38-63
34
35       So 123 = 59*64^0 + 1*64^1 = "v/".
36

CONFORMING TO

38       POSIX.1-2001.
39

NOTES

41       The value returned by a64l() may be a pointer to a static buffer,  pos‐
42       sibly overwritten by later calls.
43
44       The  behavior  of l64a() is undefined when value is negative.  If value
45       is zero, it returns an empty string.
46
47       These functions are broken in glibc before 2.2.5 (puts most significant
48       digit first).
49
50       This is not the encoding used by uuencode(1).
51

SEE ALSO

53       uuencode(1), strtoul(3)
54

COLOPHON

56       This  page  is  part of release 3.25 of the Linux man-pages project.  A
57       description of the project, and information about reporting  bugs,  can
58       be found at http://www.kernel.org/doc/man-pages/.
59
60
61
62                                  2007-07-26                           A64L(3)
Impressum