//
//  ble.c
//
//  Created by Julien-Pierre AvŽrous on 22/08/06.
//  Copyright 2006 SourceMac.com. All rights reserved.
//
//

#include <stdio.h>

int LittleEndian();

int main()
{
	printf("Averous Julien-Pierre - 2006 - www.sourcemac.com\n");
	printf("You are running on %s endian processor\n", LittleEndian()?"little":"big");
}


int LittleEndian()
{
	static short k=0xAABB;
	return (*((char*)&k)==(char)0xBB);
}