buffer_getn man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

buffer_getn(3)							buffer_getn(3)

NAME
       buffer_getn - read binary data from buffer

SYNTAX
       #include <buffer.h>

       ssize_t buffer_getn(buffer* b,char* x,size_t len);

DESCRIPTION
       buffer_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 appropri‐
       ately.	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 ALSO
       buffer_init(3), buffer_get(3), buffer(3)

								buffer_getn(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net