Skip to content

Instantly share code, notes, and snippets.

Created Feb 5, 2022
What would you like to do?
// To build: gcc -o argc0 argc0.c
// To use: ./argc0 /bin/whatever
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
int main(int argc, char **argv) {
assert(argc == 2);
execl(argv[1], NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment