'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .\" Copyright 1989 AT&T .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH A64L 3C "Jul 24, 2002" .SH NAME a64l, l64a \- convert between long integer and base-64 ASCII string .SH SYNOPSIS .LP .nf #include \fBlong\fR \fBa64l\fR(\fBconst char *\fR\fIs\fR); .fi .LP .nf \fBchar *\fR\fBl64a\fR(\fBlong\fR \fIl\fR); .fi .SH DESCRIPTION .sp .LP These functions maintain numbers stored in base-64 \fBASCII\fR characters that define a notation by which long integers can be represented by up to six characters. Each character represents a "digit" in a radix-64 notation. .sp .LP The characters used to represent "digits" are as follows: .sp .sp .TS box; l | l l | l . Character Digit _ \fB\&.\fR \fB0\fR \fB/\fR \fB1\fR \fB0-9\fR \fB2-11\fR \fBA-Z\fR \fB12-37\fR \fBa-z\fR \fB38-63\fR .TE .sp .LP The \fBa64l()\fR function takes a pointer to a null-terminated base-64 representation and returns a corresponding \fBlong\fR value. If the string pointed to by \fIs\fR contains more than six characters, \fBa64l()\fR uses the first six. .sp .LP The \fBa64l()\fR function scans the character string from left to right with the least significant digit on the left, decoding each character as a 6-bit radix-64 number. .sp .LP The \fBl64a()\fR function takes a \fBlong\fR argument and returns a pointer to the corresponding base-64 representation. If the argument is 0, \fBl64a()\fR returns a pointer to a null string. .sp .LP The value returned by \fBl64a()\fR is a pointer into a static buffer, the contents of which are overwritten by each call. In the case of multithreaded applications, the return value is a pointer to thread specific data. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Standard _ MT-Level MT-Safe .TE .SH SEE ALSO .sp .LP \fBattributes\fR(5), \fBstandards\fR(5)