Question

I desperatly tried to find out what symbol '\nquit' is... and I couldnt find any reference in the web.

What I tried to find is a complete list of all of those characters (\n, \p, \0, ...) but I couldn't find any.

cheers usche

Was it helpful?

Solution

Wikipedia has a list of C language escapes here.

As noted in my comment, I believe this represents the newline (linefeed) character \n followed by the word quit (which would be forced by the newline to the beginning of the next line of output). But in that case the string should be "double"-quoted rather than 'single'-quoted.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top