char *arg;
arg = strstr(buff, 001);
This is giving me typecasting problem. How to store 001 in arg?
char *arg;
arg = strstr(buff, 001);
This is giving me typecasting problem. How to store 001 in arg?
This is giving me typecasting problem. How to store 001 in arg?
The second argument of the C function strstr
must be of type const char *
. You are instead passing an int
. Use quotes.
arg = strstr(buff, "001");