__ARRAYCOUNT(3) BSD Library Functions Manual __ARRAYCOUNT(3)NAME
__arraycount -- macro for statically allocated arrays
The __arraycount() macro returns the number of elements in a statically allocated buffer.
The following example demonstrates a typical usage of __arraycount():
for (i = 0; i < __arraycount(buf); i++)
SEE ALSO cdefs(3)HISTORY
The __arraycount() macro first appeared in NetBSD 4.0.
BSD December 16, 2010 BSD
Check Out this Related Man Page
__CONCAT(3) BSD Library Functions Manual __CONCAT(3)NAME
__CONCAT, __STRING -- argument substitution
const char *
The __CONCAT macro makes use of the cpp(1) preprocessor to concatenate two tokens. When the macro is expanded, x and y are combined into a
single token, provided that the result forms a valid token; two tokens that together do not form a valid token can not be concatenated. This
is known as ``token concatenation'' or ``token pasting''.
The __STRING() macro uses the conventional '#' preprocessing operator to replace the argument x with a string literal. This is also known as
The following two printf(3) calls produce the same output:
#define Net 0x01
#define BSD 0x02
#define NetBSD "NetBSD"
", __CONCAT(Net, BSD));
", __STRING(Net), __STRING(BSD));
SEE ALSO cpp(1), cdefs(3)HISTORY
The __CONCAT() and __STRING() macros first appeared in NetBSD 1.3.
Many small details direct the proper use of the macros. For example, while all leading and trailing whitespace is ignored when __STRING() is
used, it is undefined whether cpp(1) puts white space between the tokens when __CONCAT() is used. It can be also noted that the C preproces-
sor converts all comments to whitespace before any macros are even considered. The use of either macro is discouraged in complex constructs.
BSD December 16, 2010 BSD
I have gone through the search and looked at posting about idle users and killing processes. Here is my question I would like to kill an idle user ( which I can do) but how can I asure that all of his process is also killed whit out tracing his inital start PID. I have tried this on a... (4 Replies)
I was just wondering if there is any direct way to access PL/SQL OUT variables from Korn Shell Script.
I could already figure out how to return a single value back from PL/SQL to Shell Script (using bind variable).
But, what if we want to return multiple values?
One option I... (4 Replies)
I would like to know if there is a way to just have one ORACLE connection established, using which we can execute different queries and store the results under different variables.
For e.g the following uses to two silent ORACLE connection to store the result under two different... (4 Replies)
i want to call a oracle stored procedure from unix (using bash shell).
consider this is my oracle stored procedure with parameter
create procedure testproc(name IN varchar, age IN Number, id OUT Number )
end;... (6 Replies)
I have two tables in oracle DB and am using a joining query which will result in the output as follows.
i need to assign it to a two dimensional array and use it for my further calculations.
the way i tried is as follows.
export... (1 Reply)
hi every body
this is my first thread in this forum, i hope find a solution for my problem
i have to write a script bt i still have some error and i don't know how to correct them
$ for i in `seq 500 505`; do ./generateur_tache $i tache$i.txt; nprocs=$i; copt$i=`cat tache$i.txt | ./copt.awk` ;... (10 Replies)
Newbie here and tried to search this topic for 3 days now with results.
I have a shell array and I want to use it in sqlplus with one connection.
here is what I have for now
sqlplus /nolog <<EOF
connect... (20 Replies)
I am parsing file for the fields using awk command, first i check 26th field for two characters using substr function if it matches then using for loop on array i search 184th field for 4 chars if it matches then i print the required fields but on execution i get the error, please help...... (5 Replies)
I have a file of 40000+ lines with different entries, I need matching entries filterd out to their files based on first filed pattern for the matching :
All server1 entries (in field1) to come together with its path in 2nd field.
The best output I want... (9 Replies)