[ILUG-BOM] Buggy C prog
Fri Sep 27 09:40:50 IST 2002
Seems that you got the solution by hit and trial.
But do you understand the meaning of the code given
If not, understand it , it may help you in
understanding pointers to a great extent.
--- Nikhil Joshi <nikhiljoshi at subdimension.com> wrote:
> 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?
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
More information about the Linuxers