libowfat_range_arrayinbuf man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

range_arrayinbuf(3)					   range_arrayinbuf(3)

NAME
       range_arrayinbuf - range check for array in buffer

SYNTAX
       #include <rangecheck.h>

       int range_arrayinbuf(const void* buf,size_t len,
			    const void* arraystart,
			    size_t elements,size_t membersize);

DESCRIPTION
       range_arrayinbuf	 checks that the array starting at arraystart consist‐
       ing of elements members of size membersize each starts and ends	within
       the buffer buf[0..len-1].

       If  the array is 0-terminated and you don't know the length beforehand,
       use range_strinbuf, range_str2inbuf or range_str4inbuf instead.

RETURN VALUE
       If the buffer is implausible (buf is NULL or  buf+len  has  an  integer
       overflow), return 0.

       If  the	array  is implausible (arraystart is NULL, elements*membersize
       overflows, or calculating the byte offset of  the  last	element	 over‐
       flows), return 0.

       If  the	first  or last element of the array points before or after the
       buffer, return 0.

       Otherwise, return 1.

SEE ALSO
       rangecheck(3)

							   range_arrayinbuf(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net