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