Created
November 25, 2020 06:36
-
-
Save dankogai/0b2bcf03afd9cfe9d7b38503acf20f1f to your computer and use it in GitHub Desktop.
I came up with this before I rediscovered "arch -x86_64"
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> | |
#include <stdlib.h> | |
#include <unistd.h> | |
int main(int argc, char *argv[]) | |
{ | |
if (argc <= 1) | |
{ | |
fprintf(stdout, "usage:\n\t%s cmd [args...]\n", argv[0]); | |
exit(-1); | |
} | |
else | |
{ | |
execvp(argv[1], argv + 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compile
usage