How to remove these warning when erasing a c string
Posted
by nunos
on Stack Overflow
See other posts from Stack Overflow
or by nunos
Published on 2010-05-31T16:33:29Z
Indexed on
2010/05/31
16:43 UTC
Read the original article
Hit count: 172
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.
© Stack Overflow or respective owner