CompuServe Messages

#Strings in C

    24-Nov-94 16:22:42
Sb: #44207-#Strings in C
Fm: Werner Kazmierzak 100041,1320
To: Shraddhan 70374,754
Shraddan, I did suggest to use octals because this is compatible with K & R (first edition). The escape-sequence \x (and \v) was introduced later in ANSI-C, so there might be some portability problems on older systems. Of course, either using octal or hex, the problem is, that a digit that is following the expression will be interpreted to be a digit of the number itself. For portability reasons, integer numbers greater than 255 must be allowed to be assigned to a variable of type char, because sizeof(char) may be greater than 1 on some alien environment. – wkc – … via AP from Hamburg, Germany