Answers for "how to set string to null in c"

C
0

how to set string to null in c

char *str;
/* ... allocate storage for str here ... */
*str = '\0'; /* Same as *str = 0; */
Posted by: Guest on April-20-2021

Code answers related to "C"

Browse Popular Code Answers by Language