1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\" Corrected, aeb, 2002-05-30
6 .TH A64L 3 2010-09-20 "" "Linux Programmer's Manual"
8 a64l, l64a \- convert between long and base-64
10 .B #include <stdlib.h>
12 .BI "long a64l(char *" str64 );
14 .BI "char *l64a(long " value );
17 Feature Test Macro Requirements for glibc (see
18 .BR feature_test_macros (7)):
26 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
27 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
31 These functions provide a conversion between 32-bit long integers
32 and little-endian base-64 ASCII strings (of length zero to six).
33 If the string used as argument for
35 has length greater than six, only the first six bytes are used.
38 has more than 32 bits, then
40 uses only the low order 32 bits of
44 sign-extends its 32-bit result.
46 The 64 digits in the base-64 system are:
50 \&\(aq.\(aq represents a 0
51 \&\(aq/\(aq represents a 1
58 So 123 = 59*64^0 + 1*64^1 = "v/".
64 may be a pointer to a static buffer, possibly overwritten
74 is zero, it returns an empty string.
76 These functions are broken in glibc before 2.2.5
77 (puts most significant digit first).
79 This is not the encoding used by