How to remove these warning when erasing a c string
- by nunos
How can I remove these warnings?
char foo[10];
int k;
for (k = 0; foo[k] != NULL; k++) //comparison between pointer and integer
msg2[k] = NULL; //assignment makes integer from pointer without a cast
Thanks.