Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* argvdump.c
- * Dumps all command line arguments
- * Useful for debugging programs that call other programs
- * Just create a symlink with the name of your target application.
- * The Lightning Stalker 2013
- */
- #include <stdio.h>
- int main (int argc, char **argv)
- {
- int i;
- fprintf (stderr, "%s ", argv[0]);
- for (i = 1; i < argc; i++)
- fprintf (stderr, "\"%s\" ", argv[i]);
- fputs ("\n", stderr);
- return (0);
- }
Add Comment
Please, Sign In to add comment