My argument is like this
./a.out -i file1 file2 file3
How can I utilize getopt() to get 3 (or more ) input files? I'm doing something like this:
while ((opt = getopt(argc, argv, "i:xyz.."))!= -1){
case 'i':
input = optarg;
break;
...
}
I get jusst the file1, how to get file2, file 3 ??
Thanks in advance