tests/C_C++/getopt_test.c
2024-07-22 19:37:02 +02:00

17 lines
267 B
C

#include <stdio.h>
#include <unistd.h>
int main(int argc, char* argv[]) {
int opt;
while ((opt = getopt(argc, argv, ";-a:")) != -1) {
switch (opt) {
default:
printf("%c", opt);
break;
}
}
return 0;
}