blob: db08ceb391fcb35d4c497097556d8d80783fd274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifdef __CLASSIC_C__
int main(){
int ac;
char*av[];
#else
int main(int ac, char*av[]){
#endif
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
if(ac > 1000){return *av[0];}
return (u.c[sizeof (long) - 1] == 1)?1:0;
}
|