blob: 545b795c5da7ec49cee61b61f89bd8051034eda0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include<stdio.h>
#include<string.h>
int main(int argc, char **argv) {
if(argc != 3) {
fprintf(stderr, "Incorrect number of arguments.\n");
return 1;
}
if(strcmp(argv[1], "first") != 0) {
fprintf(stderr, "First argument is wrong.\n");
return 1;
}
if(strcmp(argv[2], "second") != 0) {
fprintf(stderr, "Second argument is wrong.\n");
return 1;
}
return 0;
}
|