Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ a64l(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

a64l, l64a

Purpose

     Converts between long integers and base-64 ASCII strings.

Library

     Standard C Library (libc.a)

Syntax

     long a64l (s)                             char *l64a (l)
     char *s;                                  long l;
     Description

     The a64l and l64a  subroutines maintain numbers stored in
     base-64 ASCII  characters.  This  is a notation  in which
     long integers are represented by up to 6 characters, each
     character representing a digit in a base-64 notation.

     The following characters are used to represent digits:

        "."   represents  0. "/" represents 1. "0"--"9" represent 2--11. "A"--"Z" represent 12--37. "a"--"z" represent 38--63.

     The a64l subroutine takes  a pointer to a null-terminated
     character string containing a  value in base-64 represen-
     tation and returns the  corresponding long value.  If the
     string pointed to by the s parameter contains more than 6
     characters, the a64l subroutine uses only the first 6.

     Conversely, the  l64a subroutine  takes a  long parameter
     and returns a pointer to the corresponding base-64 repre-
     sentation.  If the  l parameter is 0, then  the l64a sub-
     routine returns a pointer to a null string.

     The value  returned by  l64a is a  pointer into  a static
     buffer,  the contents  of which  are overwritten  by each
     call.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026