summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/a64l.3c
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-03-14 14:05:30 -0400
committerRichard Lowe <richlowe@richlowe.net>2011-03-14 14:05:30 -0400
commitc10c16dec587a0662068f6e2991c29ed3a9db943 (patch)
treef414286f4bba41d75683ed4fbbaa6bfa4bf7fabd /usr/src/man/man3c/a64l.3c
parent68caef18a23a498d9e3017b983562c0f4fd8ab23 (diff)
downloadillumos-joyent-c10c16dec587a0662068f6e2991c29ed3a9db943.tar.gz
243 system manual pages should live with the software
Reviewed by: garrett@nexenta.com Reviewed by: gwr@nexenta.com Reviewed by: trisk@opensolaris.org Approved by: gwr@nexenta.com --HG-- extra : rebase_source : 0c599d0bec0dc8865fbba67721a7a6cd6b1feefb
Diffstat (limited to 'usr/src/man/man3c/a64l.3c')
-rw-r--r--usr/src/man/man3c/a64l.3c92
1 files changed, 92 insertions, 0 deletions
diff --git a/usr/src/man/man3c/a64l.3c b/usr/src/man/man3c/a64l.3c
new file mode 100644
index 0000000000..d469aeecb2
--- /dev/null
+++ b/usr/src/man/man3c/a64l.3c
@@ -0,0 +1,92 @@
+'\" 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 "24 Jul 2002" "SunOS 5.11" "Standard C Library Functions"
+.SH NAME
+a64l, l64a \- convert between long integer and base-64 ASCII string
+.SH SYNOPSIS
+.LP
+.nf
+#include <stdlib.h>
+
+\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
+tab() box;
+lw(2.76i) |lw(2.74i)
+lw(2.76i) |lw(2.74i)
+.
+CharacterDigit
+_
+\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
+tab() box;
+cw(2.75i) |cw(2.75i)
+lw(2.75i) |lw(2.75i)
+.
+\fBATTRIBUTE TYPE\fR\fBATTRIBUTE VALUE\fR
+_
+Interface StabilityStandard
+_
+MT-LevelMT-Safe
+.TE
+
+.SH SEE ALSO
+.sp
+.LP
+\fBattributes\fR(5), \fBstandards\fR(5)