Looking for null terminator
When working with a character array:
I normally check to see if it is a null string by:
char name = "";
or I match along the string looking for '\0' when I parse strings some times.
if (name == '\0') ...
at times I might even do this:
Question is, if now I declare name as:
how should my code be changed accordingly, if I will be creating the app for use in both char and wchar_t cases?