#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

#define PATH_MAX 4096

int main(int argc, char **argv)
{
  char *s;
  s = malloc(PATH_MAX);
  getcwd(s, PATH_MAX);
  printf("cwd: \"%s\"\n", s);
  system("./cd");
  getcwd(s, PATH_MAX);
  printf("cwd: \"%s\"\n", s);
  exit(0);
}


