bruh. ofc 0 is always args
what was the point of including that?
This commit is contained in:
@@ -7,8 +7,8 @@ int main(int argc, char **argv){
|
|||||||
PRINT_ERROR("%s obviously needs arguments to work…", NAME);
|
PRINT_ERROR("%s obviously needs arguments to work…", NAME);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<argc; i++){
|
for (int i=1; i<argc; i++){
|
||||||
char *arg = argv[i][0] == '\0' ? "''" : argv[i];
|
char *arg = argv[i][0] == '\0' ? "''" : argv[i];
|
||||||
printf ( "@%d\t%s\n", i, arg);
|
printf ( "@%d\t%s\n", i, arg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user