#include <direct.h> #include <malloc.h> #include <stdio.h> --- char *buf; buf = _getcwd(NULL, 0); printf("%c\n", buf[0]); --- free(buf); ...