buffer_get_token_pred 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_get_token_pred(3)			      buffer_get_token_pred(3)

NAME
       buffer_get_token_pred - read token from buffer

SYNTAX
       #include <buffer.h>

       ssize_t buffer_get_token_pred(buffer* b,char* x,size_t len,
			int (*predicate)(const char* s,size_t len));

DESCRIPTION
       buffer_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 ALSO
       buffer_init(3),	buffer_feed(3),	 buffer_peek(3),  buffer_seek(3), buf‐
       fer(3)

						      buffer_get_token_pred(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