Skip to content

Instantly share code, notes, and snippets.

@drHyperion451
Created November 4, 2023 13:21
Show Gist options
  • Save drHyperion451/61cf0f736c1bb2acae605e24351f9fa0 to your computer and use it in GitHub Desktop.
Save drHyperion451/61cf0f736c1bb2acae605e24351f9fa0 to your computer and use it in GitHub Desktop.
Small c program that will print any arguments it parses
#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