]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/crt-argv-NULL/main.c
dyld-733.6.tar.gz
[apple/dyld.git] / unit-tests / test-cases / crt-argv-NULL / main.c
1
2 #include <unistd.h>
3
4
5 int main(int argc, const char* argv[])
6 {
7 if ( argv[0] != NULL ) {
8 // re-exec with empty argv[] array
9 char* const emptyArgv[] = { NULL };
10 execv(argv[0], emptyArgv);
11 }
12
13 return 0;
14 }