Preprocessor code to figure out endianness ?

Otto J. Makela otto at tukki.jyu.fi
Mon Sep 10 07:52:13 AEST 1990


I seem to remember seeing somewhere a real smart preprocessor construction
to figure out the endianness of the machine under which the code was being
compiled.  I cannot remember where and how, though ?  Any pointers ?
--
* * * Otto J. Makela <otto at jyu.fi> * * * * * * * * * * * * * * * * * * * * *
* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 2400/1200/300) *
* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE             *
* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * * * *



More information about the Comp.lang.c mailing list