src/endian_check.cpp
branchcpp_gui
changeset 6307 f40e88cff863
parent 6268 4b5241e5dd10
child 6743 cabfaa4a0295
equal deleted inserted replaced
6306:036aa28ca80e 6307:f40e88cff863
    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)