Hi,
It's known that strdup() returns a char* type, but sometimes the
following code generates warning messages.
char *x = ...
char *p = strdup(x);
You must change it to
char *p = (char*) strdup(x);
why?
It's known that strdup() returns a char* type, but sometimes the
following code generates warning messages.
char *x = ...
char *p = strdup(x);
You must change it to
char *p = (char*) strdup(x);
why?
Comment