GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LIBOWFAT_BUFFER_PEEK (3)

NAME

buffer_peek - return pointer to string in buffer

CONTENTS

Syntax
Description
Example

SYNTAX

#include <buffer.h>

int buffer_peek(buffer* b);

DESCRIPTION

buffer_peek returns a pointer to the first byte of the string in the buffer.

EXAMPLE

buffer_feed, buffer_peek and buffer_seek can be used for efficient reading loops, nearly the same speed as calling op directly:

for (;;) {
r = buffer_feed(&b);
if (r <= 0) return r;
x = buffer_peek(&b);
dosomething(x,r);
buffer_seek(&b,r);
}

SEE ALSO

buffer_init(3), buffer_feed(3), buffer_get(3), buffer_seek(3), buffer(3)
Search for    or go to Top of page |  Section 3 |  Main Index


BUFFER_PEEK (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.