how to check if a character is a new line code example Example: check if character is newline c if (s[i] == '\n')