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