Commit 83c7fdc4 authored by Rusty Russell's avatar Rusty Russell

junkcode: new addition.

parent 9faf1743
#include <stdint.h>
/* returns 0 for little-endian, 1 for big-endian */
int main( void )
{
static const uint64_t one = (uint64_t) 1;
if ((uint8_t) 1 == *((uint8_t *) &one))
return 0;
else
return 1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment