cryptlib
3.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
tools
endian.c
Go to the documentation of this file.
1
/* This is a lowest-common-denominator program which should compile under
2
the default cc on any system, no matter how primitive (even the SunOS
3
one - note the use of 1970s-vintage octal escapes). This is necessary
4
because it's compiled before we can try and select a decent compiler via
5
the makefile */
6
7
#include <stdio.h>
8
#include <stdlib.h>
9
10
int
main
()
11
{
12
if
( *(
long
* )
"\200\0\0\0\0\0\0\0"
< 0 )
13
printf(
"-DDATA_BIGENDIAN"
);
14
else
15
printf(
"-DDATA_LITTLEENDIAN"
);
16
17
return
( 0 );
18
}
Generated on Thu Jan 10 2013 10:00:55 for cryptlib by
1.8.2