WYRDTEK Home Features Reference Downloads About


Reference/es_wb_write

Syntax

int es_wb_write( struct es_wb *wbuf, void *buf, unsigned size );

Arguments

struct es_wb *wbuf Write-buffer.
void *buf User supplied buffer to write from.
unsigned size Number of bytes to write.

Description

Write size bytes from the user-supplied buffer buf to the file descriptor associated with the write-buffer wbuf.

Returns zero on success and returns errno (from the standard library errno.h) on error.

es_wb_read() differs from the write() system call in that in normal operation it will always write exactly size bytes (blocking on underlying file descriptor if necessary) rather than writing any number of bytes up to and including size.

[Back To Reference] [Back To Reference/es_wb]