A question about atoi() i C...
I'm trying to understand why I get this error when I compile
functions.c:521: warning: passing argument 2 of 'AddRecord' makes pointer from integer without a cast arg2 is a char pointer already why is it complaining? Code:
char *arg1; Code:
if (strncmp(arg1, "add", 1) == 0) { |
It's complaining because atoi converts char-pointer into an integer represention of what it finds at the poited-to location.
Drop the atoi AddRecord(conn, arg2, arg3, arg4); // line 521 |
Ah ok yes I see now. Thanks.
|
All times are GMT -5. The time now is 01:38 PM. |