A64L - convert base 64 ASCII string to long integer.

(Compatible with UNIX System V C)

Usage:

long a64l();
l = a64l(s);

Where:

char *s;
is a number written as an ASCII string. Each character represents a digit in base 64 notation. The character '.' represents 0, '/' represents 1, '0' to '9' represent 2 to 11, 'A' to 'Z' represent 12 to 37, and 'a' to 'z' represent 38 to 63. If the string contains any other characters than these, the results are undefined.
long l;
is the long integer that corresponds to the given string.

Description:

The "a64l" function converts an ASCII string in base 64 form into a long integer. If the string is longer than six characters, only the first six characters will be used. In other words,

a64l("abcdefg") == a64l("abcdef")

See Also:

expl c lib l64a

Copyright © 1996, Thinkage Ltd.