Created
November 4, 2023 13:21
-
-
Save drHyperion451/61cf0f736c1bb2acae605e24351f9fa0 to your computer and use it in GitHub Desktop.
Small c program that will print any arguments it parses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// This will print any argument it parses just for testing purposes. | |
int main(int argc, char *argv[]) { | |
for (int i = 1; i < argc; i++) { | |
printf("Argument %d: %s\n", i, argv[i]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment