[ILUG-BOM] Buggy C prog

Manish Jethani manishj@[EMAIL-PROTECTED]
Sat Sep 28 01:24:32 IST 2002


Nikhil Joshi wrote:

 > char *arg[4];

And now that you know how to malloc, I'd like to suggest a
better approach -

   char arg[4][30];

That way you don't have to bother about malloc and in your case
I think you don't need to malloc.

Manish





More information about the Linuxers mailing list