Query: buffer_get_token_pred
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
buffer_get_token_pred(3) Library Functions Manual buffer_get_token_pred(3)NAMEbuffer_get_token_pred - read token from bufferSYNTAX#include <buffer.h> ssize_t buffer_get_token_pred(buffer* b,char* x,size_t len, int (*predicate)(const char* s,size_t len));DESCRIPTIONbuffer_get_token_pred copies data from b to x[0], x[1], ..., x[len-1] until len bytes have been read or predicate called on the destination string returns nonzero. predicate can also return 0 (indicating further input is required to complete the token) or -1 (abort and return -1; use this if predicate wants to enfore a maximum message size or does timeout handling or detects a malformed message). buffer_get_token_pred returns the number of bytes copied or -1 on error (setting errno appropriately).SEE ALSObuffer_init(3), buffer_feed(3), buffer_peek(3), buffer_seek(3), buffer(3) buffer_get_token_pred(3)
Related Man Pages |
---|
xpeekifevent(3x11) - ultrix |
ieee1284_compat_write(3) - debian |
ieee1284_ecp_read_data(3) - debian |
ieee1284_ecp_write_addr(3) - debian |
xcheckifevent(3x11) - ultrix |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
How can I do this in VI editor? |
One instance of comparing grep and awk |
Weird 'find' results |