getwd.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 35 行

3
35
字号
.\" SCCSID: @(#)getwd.3	8.1	9/11/90.TH getwd 3.SH Namegetwd \- get current working directory pathname.SH Syntax.nf.B char *getwd(pathname).B char *pathname;.fi.SH Description.NXR "getwd subroutine".NXR "working directory" "getting pathname".NXA "directory" "working directory"The.PN getwdsubroutine copies the absolute pathname of the current working directory to.I pathnameand returns a pointer to the result..SH RestrictionsThe.PN getwdsubroutinemay fail to return to the current directory if an error occurs..PPPathnames can be no longer thanMAXPATHLEN as defined in <sys/param.h>..SH Return ValuesThe.PN getwdsubroutinereturns zero and places a message in.I pathnameif an error occurs.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?