Skip to content

Instantly share code, notes, and snippets.

@LightningStalker
Created August 25, 2017 21:47
Show Gist options
  • Select an option

  • Save LightningStalker/027ae0b41eae6ae30d0b45a2d4e08557 to your computer and use it in GitHub Desktop.

Select an option

Save LightningStalker/027ae0b41eae6ae30d0b45a2d4e08557 to your computer and use it in GitHub Desktop.
Gisting some things over from Pastebin
/* 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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment