As others have said, this is a compiler-specific extension. Invoke the compiler with the right options (say, gcc -std=c99 -pedantic
), and it should warn you about it.
I'll also point out that its use is potentially dangerous, apart from the fact that another compiler might not implement it. 'a' ... 'z'
denotes the 26 lowercase letters -- but the C Standard doesn't guarantee that their values are contiguous. In EBCDIC
, for example, there are punctuation characters among the letters.
On the other hand, I doubt that either gcc or Sun C supports systems that use a character set in which the letters aren't contiguous. (They are in ASCII and all its derivatives, including Latin-1, Windows-1252, and Unicode.)
On the other other hand, it excludes accented letters. (Depending on how DRBD
is used, that may or may not be an issue.)