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 2002-02-15 "" "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 );
16 These functions provide a conversion between 32-bit long integers
17 and little-endian base-64 ASCII strings (of length zero to six).
18 If the string used as argument for
20 has length greater than six, only the first six bytes are used.
21 If longs have more than 32 bits, then
23 uses only the low order 32 bits of
27 sign-extends its 32-bit result.
29 The 64 digits in the base 64 system are:
41 So 123 = 59*64^0 + 1*64^1 = "v/".
45 may be a pointer to a static buffer, possibly overwritten
55 is zero, it returns an empty string.
57 These functions are broken in glibc before 2.2.5
58 (puts most significant digit first).
60 This is not the encoding used by