max.c
changeset 48 b94d657a9acb
parent 29 7abf6146898e
child 61 4b4c97f179da
equal deleted inserted replaced
47:63adb261de90 48:b94d657a9acb
    16     unsigned int a;
    16     unsigned int a;
    17     unsigned int b;
    17     unsigned int b;
    18 
    18 
    19     if (argc != 3) {
    19     if (argc != 3) {
    20         printf ("Usage: %s value1 value2\n", argv[0]);
    20         printf ("Usage: %s value1 value2\n", argv[0]);
    21         return EXIT_SUCCESS;
    21         return EXIT_FAILURE;
    22     }
    22     }
    23     a = atoi (argv[1]);
    23     a = atoi (argv[1]);
    24     b = atoi (argv[2]);
    24     b = atoi (argv[2]);
    25 
    25 
    26     printf ("%u\n", max (a, b));
    26     printf ("%u\n", max (a, b));