As long as I use the char
and not some wchar_t
type to declare a string will strlen()
correctly report the number of char
s in the string or are there some very specific cases I need to be aware of? Here is an example:
char *something = "Report all my chars, please!";
strlen(something);