machine endianess

This commit is contained in:
2024-02-29 10:59:49 +05:30
parent dc5620324b
commit ba495cf210
5 changed files with 103 additions and 0 deletions

26
endianess/endian.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* =====================================================================================
*
* Filename: endian.h
*
* Description:
*
* Version: 1.0
* Created: 29/02/24 10:11:52 AM IST
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#ifndef __ENDIANESS__
#define __ENDIANESS__
/* return 0 - Big endian, 1 for Little endian */
int
machine_endianness_type();
#endif