|
sc68fordevelopers
2.2.1
|
System byte order. More...
Go to the source code of this file.
Functions | |
| int | SC68byte_order (void) |
| Get integer byte order. | |
| int | SC68little_endian (void) |
| Check if byte order is little endian. | |
| int | SC68big_endian (void) |
| Check if byte order is big endian. | |
| int SC68byte_order | ( | void | ) |
Get integer byte order.
The SC68byte_order() function returns an integer which gives the position of each byte in the memory.
Examples:
| int SC68little_endian | ( | void | ) |
Check if byte order is little endian.
The SC68little_endian() function checks if the byte order is little endian.
| 1 | byte order is little endian. |
| 0 | byte order is not little endian. |
| int SC68big_endian | ( | void | ) |
Check if byte order is big endian.
The SC68big_endian() function checks if the byte order is big endian. By the way it returns !SC68little_endian().
| 1 | byte order is big endian. |
| 0 | byte order is not big endian. |
1.7.5.1