Does the standard A header include ASCII aliases?

It would help to avoid such actions,

#define ESC (27)
#define DEL (127)

      

Edit: Look for either a standard C header or a POSIX C header with this.

+3


source to share


1 answer


Unfortunately no. C is described abstractly in terms of the execution character set and the implementation character set, both of which may differ. The characters used are not the complete set offered by ASCII. In fact, the ascii current version at the time of the first C compilers didn't even have it yet '@'

.



A search for "posix character set" confirmed this. http://pubs.opengroup.org/onlinepubs/009696899/basedefs/xbd_chap06.html

0


source







All Articles