Query: buffer_peek
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
buffer_peek(3) Library Functions Manual buffer_peek(3)NAMEbuffer_peek - return pointer to string in bufferSYNTAX#include <buffer.h> int buffer_peek(buffer* b);DESCRIPTIONbuffer_peek returns a pointer to the first byte of the string in the buffer.EXAMPLEbuffer_feed, buffer_peek and buffer_seek can be used for efficient reading loops, nearly the same speed as calling op directly: for (;;) { r = buffer_feed(&b); if (r <= 0) return r; x = buffer_peek(&b); dosomething(x,r); buffer_seek(&b,r); }SEE ALSObuffer_init(3), buffer_feed(3), buffer_get(3), buffer_seek(3), buffer(3) buffer_peek(3)
Related Man Pages |
---|
buffer_get_new_token_sa_pred(3) - debian |
ldns_buffer_read_at(3) - debian |
ldns_buffer_read_u32(3) - debian |
ldns_buffer_read_u8_at(3) - debian |
ldns_buffer_read_u32_at(3) - debian |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
Is UNIX an open source OS ? |
Detecting unused variables... |
One instance of comparing grep and awk |