Skip to content

Commit

Permalink
Updated print-args.c to C99
Browse files Browse the repository at this point in the history
  • Loading branch information
akrs committed Aug 26, 2014
1 parent 6a07482 commit 056f4ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions print-args/print-args.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
* This program just spits the arguments that it got.
*/
int main(int argc, char *argv[]) {
int i;
for (i = 0; i < argc; i++) {
for (int i = 0; i < argc; i++) {
printf("argument %d: %s\n", i, argv[i]);
}
}

0 comments on commit 056f4ec

Please sign in to comment.