[ale] C Programming Question

JB Wells jbwellsiv at yahoo.com
Tue Mar 6 13:50:43 EST 2001


I think this will work:

char **a=(char **)malloc (sizeof(char **));

for (i=0; i<WHATEVER; i++)
{
    /* if the pointer will be pointing to a string,
       you should change it to 
       (char *)malloc(sizeof(char) * strlen(STRING))*/

    a[i]=(char *)malloc(sizeof(char *));
}

=====
--------------------------
John B. Wells IV
Application Developer
Acterna
6100 Lake Forrest Drive
Atlanta, GA  30328
404.531.8938

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list