函数原型

  1. #include <unistd.h>
  2. char *getcwd(char *buf,size_t size);

返回值

返回当前目录名的绝对路径。