Query: buffer_getn
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
buffer_getn(3) Library Functions Manual buffer_getn(3)NAMEbuffer_getn - read binary data from bufferSYNTAX#include <buffer.h> ssize_t buffer_getn(buffer* b,char* x,size_t len);DESCRIPTIONbuffer_getn copies data to x[0], x[1], ..., x[len-1] from the buffer, calling buffer_feed as needed, and returns len. If a read error occurs, buffer_getn returns -1 and sets errno appropriately. It may then have put any number between 0 and len in the buf- fer, you can't tell. That makes this function only useful if you don't care when an error occurs. Use buffer_get otherwise. If the read operation signals end-of-file before len bytes were read, buffer_getn returns the number of bytes read from the buffer before end-of-file.SEE ALSObuffer_init(3), buffer_get(3), buffer(3) buffer_getn(3)
| Related Man Pages |
|---|
| ieee1284_byte_read(3) - debian |
| ieee1284_compat_write(3) - debian |
| ieee1284_ecp_read_data(3) - debian |
| roar_vs_write(3) - debian |
| fgetln(3) - netbsd |
| Similar Topics in the Unix Linux Community |
|---|
| Installing Dash Shell on OS X Lion |
| awk or sed - Convert 2 lines to 1 line |
| Weird 'find' results |
| New UNIX and Linux History Sections |
| My first PERL incarnation... Audio Oscillograph |