File: buffer_seek.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (16 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.TH buffer_seek 3
.SH NAME
buffer_seek \- remove bytes from beginning of string in buffer
.SH SYNTAX
.B #include <libowfat/buffer.h>

ssize_t \fBbuffer_seek\fP(buffer* \fIb\fR,size_t \fIr\fR);
.SH DESCRIPTION
buffer_seek removes \fIr\fR bytes from the beginning of the string.

\fIr\fR can not be larger than the maximum value that ssize_t can
represent.
.SH "RETURN VALUE"
Returns r (or -1 on error).
.SH "SEE ALSO"
buffer_init(3), buffer_feed(3), buffer_peek(3), buffer_get(3), buffer(3)