| 32 | printf("-h : display this message\n"); |
| 33 | } |
| 34 | bool Data_Need_Swapping(void) |
| 35 | { |
| 36 | int test_var = 1; |
| 37 | char* cptr = (char*)&test_var; |
| 38 | |
| 39 | //true means little ending |
| 40 | //false means big endian |
| 41 | return (cptr != NULL); |
| 42 | } |
| 43 | inline void endian_swap(unsigned int& x) |
| 44 | { |
| 45 | x = (x >> 24) | |
no outgoing calls
no test coverage detected