2 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
4 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
5 .\" Distributed under GPL
8 .\" Corrected, aeb, 2002-05-30
10 .TH A64L 3 2014-05-28 "" "Linux Programmer's Manual"
12 a64l, l64a \- convert between long and base-64
14 .B #include <stdlib.h>
16 .BI "long a64l(const char *" str64 );
18 .BI "char *l64a(long " value );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
30 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
31 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
35 These functions provide a conversion between 32-bit long integers
36 and little-endian base-64 ASCII strings (of length zero to six).
37 If the string used as argument for
39 has length greater than six, only the first six bytes are used.
42 has more than 32 bits, then
44 uses only the low order 32 bits of
48 sign-extends its 32-bit result.
50 The 64 digits in the base-64 system are:
54 \&\(aq.\(aq represents a 0
55 \&\(aq/\(aq represents a 1
62 So 123 = 59*64^0 + 1*64^1 = "v/".
64 For an explanation of the terms used in this section, see
70 Interface Attribute Value
73 T} Thread safety MT-Unsafe
76 T} Thread safety MT-Safe
83 may be a pointer to a static buffer, possibly overwritten
93 is zero, it returns an empty string.
95 These functions are broken in glibc before 2.2.5
96 (puts most significant digit first).
98 This is not the encoding used by