|
|
@ -2,7 +2,7 @@ |
|
|
|
.SH NAME |
|
|
|
buffer_init \- initialize buffer structure |
|
|
|
.SH SYNTAX |
|
|
|
.B #include <buffer.h> |
|
|
|
.B #include <libowfat/buffer.h> |
|
|
|
|
|
|
|
void \fBbuffer_init\fR(buffer &\fIb\fR, |
|
|
|
ssize_t (*\fIop\fR)(int,char*,size_t), |
|
|
@ -24,8 +24,8 @@ are compile-time constants. |
|
|
|
You can call buffer_init again at any time. Note that this discards the |
|
|
|
currently buffered string. |
|
|
|
.SH EXAMPLE |
|
|
|
#include <buffer.h> |
|
|
|
#include <open.h> |
|
|
|
#include <libowfat/buffer.h> |
|
|
|
#include <libowfat/open.h> |
|
|
|
|
|
|
|
char buf[4096]; |
|
|
|
int fd=open_read("/etc/services"); |
|
|
|