Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
729 B

  1. .TH buffer_get_token 3
  2. .SH NAME
  3. buffer_get_token \- read token from buffer
  4. .SH SYNTAX
  5. .B #include <buffer.h>
  6. int \fBbuffer_get_token\fP(buffer* \fIb\fR,char* \fIx\fR,unsigned long int \fIlen\fR,
  7. const char* \fIcharset\fR,unsigned long int \fIsetlen\fR);
  8. .SH DESCRIPTION
  9. buffer_get_token copies data from \fIb\fR to \fIx\fR[0], \fIx\fR[1], ...,
  10. \fIx\fR[\fIlen\fR-1] until \fIlen\fR bytes have been copied or one of
  11. \fIcharset\fR[0], \fIcharset\fR[1], ..., \fIcharset\fR[\fIsetlen\fR]
  12. equals the last byte that was read. buffer_get_token returns the number
  13. of bytes read or -1 on error (setting \fIerrno\fR appropriately).
  14. .SH "SEE ALSO"
  15. buffer_init(3), buffer_feed(3), buffer_peek(3), buffer_seek(3), buffer(3)