1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @ingroup file68_lib
* @file sc68/endian68.h
* @author Benjamin Gerard
* @date 2003-08-12
* @brief Byte ordering header.
*
*/
/* $Id: endian68.h 102 2009-03-14 17:21:58Z benjihan $ */
/* Copyright (C) 1998-2009 Benjamin Gerard */
/** @defgroup file68_endian Byte ordering
* @ingroup file68_lib
*
* Provides functions for dealing with host byte order.
*
* @{
*/
/** Get integer byte order.
*
* The endian68_byte_order() function returns an integer which
* gives the position of each byte in the memory.
*
* Examples:
* - Intel little endian will return 0x03020100.
* - Motorola big endian will return 0x00010203.
*
* @return byte order.
*/
int ;
/** Check if byte order is little endian.
*
* The endian68_is_little() function checks if the byte order is
* little endian.
*
* @return little endian test.
* @retval 1 byte order is little endian.
* @retval 0 byte order is not little endian.
*
* @warning The function only test if the less signifiant byte is
* stored at offset 0.
*
* @see endian68_is_big();
*/
int ;
/** Check if byte order is big endian.
*
* The endian68_is_big() function checks if the byte order is big
* endian. By the way it returns !endian68_is_little().
*
* @return big endian test.
* @retval 1 byte order is big endian.
* @retval 0 byte order is not big endian.
*
* @see endian68_is_little();
*/
int ;
/**
* @}
*/
/* #ifndef _FILE68_ENDIAN68_H_ */