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\'
The escape sequence for an actual backslash is \\, e.g.
\\
char c = getchar(); if(c == '\\') ... stuff ...