Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

getcwd(3F)

Name

getcwd - 获取当前工作目录的路径名

Synopsis

integer function getcwd (dirname)
character*(*) dirname

Description

将在 dirname 中返回用于创建和查找文件的缺省目录的路径名。如果成功,则函数的值为零,否则将返回错误代码。

Files

libfui.a

See also

chdir(3F)、perror(3F)、getwd(3C)

Bugs

路径名的长度不能超过 <sys/param.h> 中定义的 MAXPATHLEN