So I want to check if someone enters: \\n (\'\\\' and then \'n\') from the keyboard to a string, so I\'m doing something like this:
\\n
\'\\\'
\'n\'
Instead of escape characters you can use the ASCII values like this
if ((str[i] == 92) && (str[i+1] == 'n')) ;