malloc error :(
my code contains the following :
char *temp = (char *)malloc(1024, sizeof(char)); am i right ? beacuse when i m compiling it , it is giving me the folloeing errors: warning: incompatible implicit declaration of built-in function 'malloc' error: too many arguments to function 'malloc' pls help thanks |
Hi,
no you are not right. The malloc function only have one parameter not two, thats why you get a "too many arguments" error. Check tha man page for malloc: Code:
man malloc |
I ll check the manual.
10x |
thanks a lot :)
problem solved |
All times are GMT -5. The time now is 01:32 PM. |