Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xltcheckargsize(3x) [redhat man page]

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)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

Initializations for very large arrays.

Hello, I am facing problems initializing very large arrays of linked list types. The problem is it takes too much of time. The array iterations are around few millions. The array elements are of type "double". I have arrays of linked lists. Each element of the array need to be ... (4 Replies)
Discussion started by: Jayathirtha
4 Replies

2. UNIX for Dummies Questions & Answers

zcat --> Arg list too long

Hi all I have more than 1000 files in a folder and when ever i use a "compress" or "zcat" command it give error /bin/zcat: Arg list too long. . any solution for this :o (3 Replies)
Discussion started by: muneebr
3 Replies

3. UNIX for Dummies Questions & Answers

execvp:ar:Arg list too long -> while linking

I get this error : execvp:ar:Arg list too long when i am trying to link the .obj files created on unix box. Any resolution to this? Thanks Mohit (1 Reply)
Discussion started by: mohitp
1 Replies

4. Shell Programming and Scripting

working with arrays

Hi, I'm writting a script to assign sm values to arrays and work on the values stored in array later. But i'm not able to work properly to use these arrays. intialising is one of the main problem as i'm not sure of array element count (they can increase/decrease). Copying the script. In case of... (4 Replies)
Discussion started by: raman1605
4 Replies

5. Shell Programming and Scripting

Struggling with arrays and delimited file

Hi, I am trying to use arrays in my script but can not seem to get it to work. I have a file called sections, this contains headers from a tripwire log file, separated by "@" but could be "," if easier The headers will be used to cut sections from the log file into another to be mailed. ... (5 Replies)
Discussion started by: pobman
5 Replies

6. Programming

question about int arrays and file pointer arrays

if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
1 Replies

7. UNIX for Dummies Questions & Answers

rm command issue

Hi, Getting the below error. rm *.txt bash: /usr/bin/rm: Arg list too long I understand the error is because there are lakhs of .txt file. Any fix ? (16 Replies)
Discussion started by: mohtashims
16 Replies

8. Shell Programming and Scripting

Split a large array into small chunks

Hi, I need to split a large array "@sharedArray" into 10 small arrays. The arrays should be like @sharedArray1,@sharedArray2,@sharedArray3...so on.. Can anyone help me with the logic to do so :(:confused: (6 Replies)
Discussion started by: rkrish
6 Replies