]> git.lizzy.rs Git - plan9front.git/commitdiff
encode(2): clarify lim argument to enc*(), add SOURCE reference for encodefmt()
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 11 Mar 2015 16:48:24 +0000 (17:48 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 11 Mar 2015 16:48:24 +0000 (17:48 +0100)
sys/man/2/encode

index 9436d94dead85cced8a7c634923999f7835b9896..3a8ca61e4e585fb3d6f6fabd0b85cf763522acdb 100644 (file)
@@ -36,7 +36,7 @@ create null terminated strings.  They return the size of the
 encoded string (without the null) or -1 if the encoding fails.
 The encoding fails if
 .IR lim ,
-the length of the output buffer, is too small.
+the length of the output buffer (including null), is too small.
 .PP
 .IR Dec16 ,
 .I dec32
@@ -83,3 +83,5 @@ For example, to display a 15 byte array as hex:
 .B /sys/src/libc/port/u32.c
 .br
 .B /sys/src/libc/port/u64.c
+.br
+.B /sys/src/libc/port/encodefmt.c