In C, backslashes are used for hard typed characters, such as \n. Therefore, you need to write \\for yourself \:
char *backslash = strch("some text containing \\ ...", '\\');
Please note that the line you provided \must also be written \\, otherwise it will be considered \hwhich does not matter.
source
share