diff options
Diffstat (limited to 'lib/libc/stdlib/a64l.3')
-rw-r--r-- | lib/libc/stdlib/a64l.3 | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/lib/libc/stdlib/a64l.3 b/lib/libc/stdlib/a64l.3 index 50cb444..61fbffd 100644 --- a/lib/libc/stdlib/a64l.3 +++ b/lib/libc/stdlib/a64l.3 @@ -67,32 +67,26 @@ The characters used to represent are .Ql .\& for 0, -.Ql /\& +.Ql / for 1, -.Ql 0\& -.Fl -.Ql 9\& -for 2 -.Fl -11, -.Ql A\& -.Fl -.Ql Z\& -for 12 -.Fl -37, and -.Ql a\& -.Fl -.Ql z\& -for 38 -.Fl -63. +.Ql 0 +- +.Ql 9 +for 2 - 11, +.Ql A +- +.Ql Z +for 12 - 37, and +.Ql a +- +.Ql z +for 38 - 63. .Pp The .Fn a64l function takes a pointer to a radix-64 representation, in which the first digit is the least significant, and returns a corresponding -.Ft long +.Vt long value. If the string pointed to by .Fa s @@ -120,7 +114,9 @@ was not generated by a previous call to .Pp The .Fn l64a -function takes a long argument and returns a pointer to the corresponding +function takes a +.Vt long +argument and returns a pointer to the corresponding radix-64 representation. The behavior of .Fn l64a @@ -141,19 +137,23 @@ and stores the resulting representation in the memory area pointed to by .Fa buffer , consuming at most .Fa buflen -characters including the terminating NUL character. +characters including the terminating +.Dv NUL +character. .Sh RETURN VALUES On successful completion, .Fn a64l returns the -.Ft long +.Vt long value resulting from conversion of the input string. -If a string pointed to by s is an empty string, +If a string pointed to by +.Fa s +is an empty string, .Fn a64l returns 0. .Pp The -l64a +.Fn l64a function returns a pointer to the radix-64 representation. If value is 0, .Fn l64a @@ -169,7 +169,7 @@ and functions are derived from .Nx with modifications. -They were added to +They appeared in .Fx 6.1 . .Sh AUTHORS The @@ -177,6 +177,7 @@ The .Fn l64a , and .Fn l64a_r +functions were added to .Fx by |