diff options
author | mdf <mdf@FreeBSD.org> | 2010-09-09 16:27:02 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2010-09-09 16:27:02 +0000 |
commit | 667f651319c270e11737f5cb30c1a20b94db849b (patch) | |
tree | 8651d0e65de0d34f93a3da7404d03fbd4169b63b /share/man | |
parent | a03821b38825e913b3542c747196ea1595e42810 (diff) | |
download | FreeBSD-src-667f651319c270e11737f5cb30c1a20b94db849b.zip FreeBSD-src-667f651319c270e11737f5cb30c1a20b94db849b.tar.gz |
Fix small errors in the sbuf(9) man page.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/sbuf.9 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9 index 58efce0..abe5831 100644 --- a/share/man/man9/sbuf.9 +++ b/share/man/man9/sbuf.9 @@ -98,7 +98,7 @@ The .Nm family of functions allows one to safely allocate, construct and -release bounded null-terminated strings in kernel space. +release bounded NUL-terminated strings in kernel space. Instead of arrays of characters, these functions operate on structures called .Fa sbufs , @@ -289,7 +289,7 @@ overflowed. .Pp The .Fn sbuf_finish -function null-terminates the +function NUL-terminates the .Fa sbuf and marks it as finished, which means that it may no longer be modified using @@ -298,7 +298,10 @@ modified using .Fn sbuf_cpy , .Fn sbuf_printf or -.Fn sbuf_putc . +.Fn sbuf_putc , +until +.Fn sbuf_clear +is used to reset the sbuf. .Pp The .Fn sbuf_data @@ -309,7 +312,9 @@ functions return the actual string and its length, respectively; only works on a finished .Fa sbuf . .Fn sbuf_done -returns non-zero if the sbuf is finished. +returns non-zero if the +.Fa sbuf +is finished. .Sh NOTES If an operation caused an .Fa sbuf |