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