add buffer_putsaflush
parent
82b0bb6f39
commit
5dfea5617e
@ -0,0 +1,14 @@
|
||||
.TH buffer_putsaflush 3
|
||||
.SH NAME
|
||||
buffer_putsa \- write stralloc to buffer and flush
|
||||
.SH SYNTAX
|
||||
.nf
|
||||
.B #include <stralloc.h>
|
||||
.B #include <buffer.h>
|
||||
|
||||
int \fBbuffer_putsaflush\fP(buffer* \fIb\fR,const char* \fIx\fR);
|
||||
.SH DESCRIPTION
|
||||
buffer_putsaflush is equivalent to buffer_putflush(b,x.sa,x.len).
|
||||
|
||||
.SH "SEE ALSO"
|
||||
buffer_puts(3), buffer_flush(3), buffer(3)
|
@ -0,0 +1,6 @@
|
||||
#include "stralloc.h"
|
||||
#include "buffer.h"
|
||||
|
||||
int buffer_putsaflush(buffer* b,stralloc* sa) {
|
||||
return buffer_putflush(b,sa->s,sa->len);
|
||||
}
|
Loading…
Reference in New Issue