I am getting a warning when I iterate through the character pointer and check when the pointer reaches the null terminator.
const char* message = \"hi\"; //I
This: "\0" is a string, not a character. A character uses single quotes, like '\0'.
"\0"
'\0'