1buffer_get_token(3)        Library Functions Manual        buffer_get_token(3)
2
3
4

NAME

6       buffer_get_token - read token from buffer
7

SYNTAX

9       #include <buffer.h>
10
11       ssize_t buffer_get_token(buffer* b,char* x,size_t len,
12                        const char* charset,size_t setlen);
13

DESCRIPTION

15       buffer_get_token  copies data from b to x[0], x[1], ..., x[len-1] until
16       len bytes have been copied  or  one  of  charset[0],  charset[1],  ...,
17       charset[setlen]  equals  the last byte that was read.  buffer_get_token
18       returns the number of bytes read or -1 on error (setting  errno  appro‐
19       priately).
20

SEE ALSO

22       buffer_init(3),  buffer_feed(3),  buffer_peek(3),  buffer_seek(3), buf‐
23       fer(3)
24
25
26
27                                                           buffer_get_token(3)
Impressum