redhat man page for xltcheckargsize

Query: xltcheckargsize

OS: redhat

Section: 3x

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

XltCheckArgSize(3X)													       XltCheckArgSize(3X)

NAME
XltCheckArgSize - Convenience macro for asserting that an ArgList is large enough.
SYNOPSIS
#include <Xlt/Xlt.h> void XltCheckArgSize(a, n) Arg a[]; Cardinal n;
DESCRIPTION
XltCheckArgSize simply asserts (using assert(3)) that a contains at least n elements. This macro will generally be used with arrays of Arg but it will work with any array (such as arrays of strings that you are about to pass to execvp(3) and execv(3)). If you've ever debugged a stack corruption because you said "Arg a[3]" when you meant "Arg a[4]", you'll understand why you want to use this macro. Note that the a parameter must be an array, a pointer will not work.
RETURN VALUE
None but it may cause abort(3) to be called.
SEE ALSO
XltGetValues(3X), XltSetValues(3X), assert(3). XltCheckArgSize(3X)
Related Man Pages
xtsetarg(3) - debian
assert(3head) - sunos
assert(3head) - opensolaris
assert.h(3head) - centos
xtsetarg(1) - hpux
Similar Topics in the Unix Linux Community
Initializations for very large arrays.
execvp:ar:Arg list too long -&gt; while linking
Struggling with arrays and delimited file
rm command issue
Split a large array into small chunks