mirror of
https://github.com/Hizenberg469/C1-Linux_SYS_Prog-AS-.git
synced 2026-04-19 18:32:24 +03:00
34 lines
654 B
C
34 lines
654 B
C
/*
|
|
* =====================================================================================
|
|
*
|
|
* Filename: main.c
|
|
*
|
|
* Description:
|
|
*
|
|
* Version: 1.0
|
|
* Created: 29/02/24 10:31:18 AM IST
|
|
* Revision: none
|
|
* Compiler: gcc
|
|
*
|
|
* Author: YOUR NAME (),
|
|
* Organization:
|
|
*
|
|
* =====================================================================================
|
|
*/
|
|
|
|
#include "endian.h"
|
|
#include <stdio.h>
|
|
|
|
int main(){
|
|
int val = machine_endianness_type();
|
|
|
|
if( val ){
|
|
printf("Little endian machine\n");
|
|
}
|
|
else{
|
|
printf("Bit endian machine\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|