Amish Mehta wrote:
> Kunal Gangakhedkar wrote:
>
>> In this case, what you need to do is advance the arg
>> pointer. Something like
>>
>> for( i =0 ; i < 4; i++) { if((*(arg + i) = (char *)malloc(n
>> * sizeof(char))) == NULL)> LHS should be *(arg + i * sizeof(char *)) As pointers(arg is Nope. arg + 1 will increment sizeof(char*) bytes, not 1. Pointer arithmetic. Manish _______________________________________________ http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

