[ILUG-BOM] Buggy C prog

Nikhil Joshi nikhiljoshi@[EMAIL-PROTECTED]
Fri Sep 27 08:34:12 IST 2002

success afterall ...
I used following to allocate memory to arg

for (i=1;i<4;i++)
      if ((arg[i] = (char *) malloc (30)) == NULL)
       printf ("Error allocating memory");

iz there ny other method to allocate memory to array of pointers?

More information about the Linuxers mailing list