I am working on MacOS-X Lion with GCC 4.2. This code works, but I get a warning I would like fix:
#include main() { char *args[] = {\"/b
This seems to be ok:
#include main() { char const *args[] = {"/bin/ls", "-r", "-t", "-l", NULL }; execv("/bin/ls", const_cast(args)); }