[LUAU] Array size.
David & Max
Buddy at Mail-me.com
Sat Apr 24 15:35:16 PDT 1999
I have a problem about how to determine the size of an array in gcc running
under Linux.
Here is what I wanna do:
void main(void)
{
int num_row;
char *items[]={"hello",
"Oops",
"done"};
num_row =calcualte_array_size (items);
}
int calculate_array_size(char *items[])
{
....... //What should be put here? Thanks.
}
calculate_array_size is a function for calculating how many **rows** is in
the string array items. Anybody could tell me how to do that?
Thanks in advance.
-Max
--
__ __ __________ __
/ / / / / / __ / / / / Home Page: http://luau.hi.net
/ /__/ /_/ / /_/ / /_/ /
/____/\____/_/ /_/\____/ LUAU - Linux Users AnonymoUs - Hawaii
To unsubscribe: echo unsubscribe luau | mail majordomo at luau.hi.net
LUAU meetings are the 3rd Tuesday of each month 6pm
More information about the LUAU
mailing list