I have seen \'\\0\'
to be used as a delimiter in mixed binary files (UTF8 strings + binary data). Could anyone explain what \'\\0\'
means or point to a
\0
is shorthand for \000
which is an octal character escape. In general, you can shorten any octal escape that isn't followed by an octal digit. This derives from the original C escape sequences (\n \r \t \f \v \b \000
where the latter is a character value in octal notation; ANSI added some, and \v
is somewhat rare these days and many more modern languages don't implement it).