regprog_c.c
/* from Harbison&Steele by way of GNU configure ...
   returns 1 for big endian, 0 for little endian */
from Harbison&Steele by way of GNU configure
returns 1 for big endian, 0 for little endian
from Harbison&Steele by way of GNU configure returns 1 for big endian 0 for little endian
static int bigendian (void){
  union {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  return(u.c[sizeof (long) - 1] == 1);
}
static int bigendian ( void ) { union { long l ; char c [ sizeof ( long ) ] ; } u ; u . l = 1 ; return ( u . c [ sizeof ( long ) - 1 ] == 1 ) ; }
from Harbison&Steele by way of GNU configure ...
returns 1 for big endian, 0 for little endian
from Harbison&Steele by way of GNU configure ... returns 1 for big endian 0 for little endian