intcmp(1): formatting, lists sysexits imports, allows no args

This commit is contained in:
Emma Tebibyte 2024-07-13 16:57:52 -06:00
parent 1dfad87e87
commit d9dd4e6057
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -21,7 +21,7 @@
#include <stdio.h> /* fprintf(3), stderr */ #include <stdio.h> /* fprintf(3), stderr */
#include <stdlib.h> /* strtol(3), size_t, EXIT_FAILURE */ #include <stdlib.h> /* strtol(3), size_t, EXIT_FAILURE */
#include <unistd.h> /* getopt(3), optind */ #include <unistd.h> /* getopt(3), optind */
#include <sysexits.h> #include <sysexits.h> /* EX_OK, EX_USAGE */
/* 0b00? */ /* Equal | -e | 0b001 | 1 */ /* 0b00? */ /* Equal | -e | 0b001 | 1 */
#define EQUAL 0x01 /* Greater | -g | 0b010 | 2 */ #define EQUAL 0x01 /* Greater | -g | 0b010 | 2 */
@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
mode = 0; mode = 0;
if(argc < 3) { return usage(argv[0]); } if (argc == 0 | argc < 3) { return usage(argv[0]); }
while ((c = getopt(argc, argv, "egl")) != -1) { while ((c = getopt(argc, argv, "egl")) != -1) {
switch(c){ switch(c){