equal
deleted
inserted
replaced
10 * care of the real writing to the file. */ |
10 * care of the real writing to the file. */ |
11 |
11 |
12 #include <stdio.h> |
12 #include <stdio.h> |
13 #include <string.h> |
13 #include <string.h> |
14 |
14 |
|
15 /** Main call of the endian_check program |
|
16 * @param argc argument count |
|
17 * @param argv arguments themselves |
|
18 * @return exit code */ |
15 int main (int argc, char *argv[]) { |
19 int main (int argc, char *argv[]) { |
16 unsigned char EndianTest[2] = { 1, 0 }; |
20 unsigned char EndianTest[2] = { 1, 0 }; |
17 int force_BE = 0, force_LE = 0, force_PREPROCESSOR = 0; |
21 int force_BE = 0, force_LE = 0, force_PREPROCESSOR = 0; |
18 |
22 |
19 if (argc > 1 && strcmp(argv[1], "BE") == 0) |
23 if (argc > 1 && strcmp(argv[1], "BE") == 0) |