From 9794094a5b3ac975d661643fc0bde6f6340ceafb Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 22 Jul 2024 21:23:46 +0200 Subject: Geen Engelse foutmelding bij ongeldige opties --- main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index e251f5f..898c821 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,6 @@ #include #include +#include #define X(name) int entry_ ## name (int argc, char **argv); PROGNAMES_XLIST @@ -14,6 +15,9 @@ static char* basename(char *path) { } int main(int argc, char **argv) { + // Ensure getopt(3) does not print an (English) error + opterr = 0; + const char *prognamearg = basename(argv[0]); if (strcmp(prognamearg, "drukkedoos") == 0) { -- cgit v1.2.3-70-g09d2