return 1;
}
confpath = argv[i];
+ } else if(strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-V") == 0) {
+ printf("Tewi HTTPd Tewi/%s\n", tw_get_version());
+ printf("Under public domain.\n");
+ printf("Copyright (C) 2024 Nishi\n");
+ return 0;
} else {
fprintf(stderr, "Unknown option: %s\n", argv[i]);
return 1;
//#include <sys/cdefs.h>
//__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $");
+#ifdef __MINGW32__
+
#include <ctype.h>
#include <string.h>
#include <time.h>
/* Nothing matched */
return NULL;
}
+
+#endif