Imported File#ftype spec from rubyspecs.
[rbx.git] / shotgun / config / isbigendian.c
blobc0b9d50ece7f9482b7e7d982aa10dd1a8c28ac46
1 int main(int argc, char **argv) {
2 char *data = "\x12\x34\x56\x78";
3 int *idata = (int*)data;
5 /* 0 is false to C, but true to shell. I hate unix sometimes. */
6 return !(*idata == 0x12345678);