1 .\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
7 .\" Corrected, aeb, 2002-05-30
9 .TH A64L 3 2014-05-28 "" "Linux Programmer's Manual"
11 a64l, l64a \- convert between long and base-64
13 .B #include <stdlib.h>
15 .BI "long a64l(const char *" str64 );
17 .BI "char *l64a(long " value );
20 Feature Test Macro Requirements for glibc (see
21 .BR feature_test_macros (7)):
29 _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
30 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
34 These functions provide a conversion between 32-bit long integers
35 and little-endian base-64 ASCII strings (of length zero to six).
36 If the string used as argument for
38 has length greater than six, only the first six bytes are used.
41 has more than 32 bits, then
43 uses only the low order 32 bits of
47 sign-extends its 32-bit result.
49 The 64 digits in the base-64 system are:
53 \&\(aq.\(aq represents a 0
54 \&\(aq/\(aq represents a 1
61 So 123 = 59*64^0 + 1*64^1 = "v/".
63 .SS Multithreading (see pthreads(7))
66 function is not thread-safe.
70 function is thread-safe.
76 may be a pointer to a static buffer, possibly overwritten
86 is zero, it returns an empty string.
88 These functions are broken in glibc before 2.2.5
89 (puts most significant digit first).
91 This is not the encoding used by