1range_validbuf(3) Library Functions Manual range_validbuf(3)
23
4
NAME
6range_validbuf - range check buffer
7
SYNTAX
9#include <rangecheck.h>
1011
int range_validbuf(const void* buf,size_t len);
1213
DESCRIPTION
15range_validbuf does some basic plausibility checks on the buffer
16buf[0..len-1].
17
RETURN VALUE
19If the buffer is implausible (buf is NULL or buf+len has an integer
20overflow), return 0.
2122
Otherwise, return 1.
23
SEE ALSO
25rangecheck(3)
2627
28
29
range_validbuf(3)