diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2019-08-07 19:27:14 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2019-08-07 19:27:14 +0000 |
commit | 76cb1112da20279c59bc8189519c4122a4d0d96a (patch) | |
tree | 1866888e51f1ea8c830a5b119569d4c78b30d16f /share/man/man9/sbuf.9 | |
parent | d23813cdb9a927b0c2965fcb4979edaad5f21dae (diff) | |
download | src-test2-76cb1112da20279c59bc8189519c4122a4d0d96a.tar.gz src-test2-76cb1112da20279c59bc8189519c4122a4d0d96a.zip |
Notes
Diffstat (limited to 'share/man/man9/sbuf.9')
-rw-r--r-- | share/man/man9/sbuf.9 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man9/sbuf.9 b/share/man/man9/sbuf.9 index 2c1601285944..1db303908a01 100644 --- a/share/man/man9/sbuf.9 +++ b/share/man/man9/sbuf.9 @@ -44,6 +44,7 @@ .Nm sbuf_cat , .Nm sbuf_copyin , .Nm sbuf_cpy , +.Nm sbuf_nl_terminate , .Nm sbuf_printf , .Nm sbuf_vprintf , .Nm sbuf_putc , @@ -123,6 +124,8 @@ .Fa "const char *str" .Fc .Ft int +.Fn sbuf_nl_terminate "struct sbuf *" +.Ft int .Fo sbuf_printf .Fa "struct sbuf *s" .Fa "const char *fmt" "..." @@ -440,10 +443,14 @@ To do unbuffered draining, initialize the sbuf with a two-byte buffer. The drain will be called for every byte added to the sbuf. The .Fn sbuf_bcopyin , +.Fn sbuf_bcpy , +.Fn sbuf_clear , .Fn sbuf_copyin , +.Fn sbuf_cpy , .Fn sbuf_trim , +.Fn sbuf_data , and -.Fn sbuf_data +.Fn sbuf_len functions cannot be used on an sbuf with a drain. .Pp The @@ -476,6 +483,11 @@ or .Fn sbuf_setpos . .Pp The +.Fn sbuf_nl_terminate +function appends a trailing newline character, if the current line is non-empty +and not already terminated by a newline character. +.Pp +The .Fn sbuf_printf function formats its arguments according to the format string pointed to by |