summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/a64l.3
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-04-20 13:50:01 +0000
committeraaron <aaron@openbsd.org>2000-04-20 13:50:01 +0000
commitb43b90887f3b9d2c29965f870f90ae22a8c39b03 (patch)
tree30c566895531f29f7cd76f7a66a745b31029b375 /lib/libc/stdlib/a64l.3
parentDon't include machine/pmap.h, vm/pmap.h does that for us. (diff)
downloadwireguard-openbsd-b43b90887f3b9d2c29965f870f90ae22a8c39b03.tar.xz
wireguard-openbsd-b43b90887f3b9d2c29965f870f90ae22a8c39b03.zip
Flesh out stdlib function man pages.
Diffstat (limited to 'lib/libc/stdlib/a64l.3')
-rw-r--r--lib/libc/stdlib/a64l.315
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/libc/stdlib/a64l.3 b/lib/libc/stdlib/a64l.3
index 1074dbff2e7..787634303c3 100644
--- a/lib/libc/stdlib/a64l.3
+++ b/lib/libc/stdlib/a64l.3
@@ -1,4 +1,3 @@
-.\"
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
.\"
@@ -24,7 +23,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: a64l.3,v 1.4 1999/06/29 18:36:15 aaron Exp $
+.\" $OpenBSD: a64l.3,v 1.5 2000/04/20 13:50:01 aaron Exp $
.\"
.Dd August 17, 1997
.Dt A64L 3
@@ -46,9 +45,9 @@ and
.Fn l64a
functions are used to maintain numbers stored in radix-64
.Tn ASCII
-characters. This is a notation by which 32-bit integers
-can be represented by up to six characters; each character
-represents a
+characters.
+This is a notation by which 32-bit integers
+can be represented by up to six characters; each character represents a
.Dq digit
in a radix-64 notation.
.Pp
@@ -73,14 +72,16 @@ for 38-63.
The
.Fn a64l
function takes a pointer to a null-terminated radix-64 representation
-and returns a corresponding 32-bit value. If the string pointed to by
+and returns a corresponding 32-bit value.
+If the string pointed to by
.Fa s
contains more than six characters,
.Fn a64l
will use the first six.
.Fn a64l
scans the character string from left to right, decoding
-each character as a 6-bit radix-64 number. If a long integer is
+each character as a 6-bit radix-64 number.
+If a long integer is
larger than 32 bits, the return value will be sign-extended.
.Pp
.Fn l64a