@Kangaroux: You really shouldn't be setting a char to NULL because that is supposed to be used with pointers. Even though it does end up being the same as assigning it to the null character ('\0').
I'm not going to argue about this, all I said is that setting it to NULL will work, which it does. I could care less if it was "meant" to be used with pointers instead.
I'm not going to argue about this, all I said is that setting it to NULL will work, which it does. I could care less if it was "meant" to be used with pointers instead.
You should. Sure it works (assuming NULL is 0), but anyone else who reads it would very likely be confused into thinking it's an array of pointers or something. And if they did get what you were doing, it would look like you don't understand the difference between the NUL character and a null pointer. Saying that it doesn't matter how it looks if it works is not a good philosophy.