write a small c function to get a program's argv and envp