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