in reply to Re: C style strings
in thread C style strings

«…do you have a proper specification?»

Since I had none at hand I took the here:

"In C, the string data type is modeled on the idea of a formal string (Hopcroft 1979):

Let Σ be a non-empty finite set of characters, called the alphabet.
A string over Σ is any finite sequence of characters from Σ.
For example, if Σ = {0, 1}, then 01011 is a string over Σ."

Seacord, R. C. (2020) EFFECTIVE C An Introduction to Professional C Programming no starch press

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: C style strings
by LanX (Saint) on Jan 01, 2023 at 13:39 UTC
    Well I was referring to Escape sequences in C, i.e. specifically in "C-style strings" °

    NB: the WP article doesn't list many references, other pages talk about variations depending on the compiler.

    Another point seems to be the distinction between various C versions like C99 which introduced \uXXXX ...

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

    °) not the mathematical definition of a byte vector.