firestring_estr_read3
Read from a file descriptor into an estring
Usage
#include <firestring.h>
-lfirestring
int firestring_estr_read(struct firestring_estr_t *estring, int fd)
Overview
firestring_estr_read() read(2)'s as much data as is available from fd and will fit in estring onto the end of the data that is already there. It updates the length of the string accordingly.
Return value
0 on success. 1 with errno set properly if read returns an error or indicates EOF. 2 if there is no space in the buffer for further reads.
Releases
Unchanged in 6 releases since Debian 3.1 (Sarge).