From Pid to Path
With inspiration from ps.c ... given a pid, determine the full path to the corresponding executable.
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/sysctl.h>
int
main (int argc, const char * argv[])
{
if (argc != 2) {
printf("usage: