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

NAME

6       range_ptrinbuf - range check pointer in buffer
7

SYNTAX

9       #include <rangecheck.h>
10
11       int range_ptrinbuf(const void* buf,size_t len,const void* ptr);
12
13

DESCRIPTION

15       range_ptrinbuf checks if ptr points to buf[0..len-1].
16

RETURN VALUE

18       If  the  buffer  is  implausible (buf is NULL or buf+len has an integer
19       overflow), return 0.
20
21       If ptr points to one of buf[0], buf[1], ... or buf[len-1], return 1.
22
23       Otherwise, return 0.
24

SEE ALSO

26       rangecheck(3)
27
28
29
30                                                             range_ptrinbuf(3)
Impressum