Skip to content

Instantly share code, notes, and snippets.

@ddnode
Created March 25, 2013 02:40
Show Gist options
  • Save ddnode/5234580 to your computer and use it in GitHub Desktop.
Save ddnode/5234580 to your computer and use it in GitHub Desktop.
getcwd — 取得当前工作目录
说明
string getcwd ( void )
取得当前工作目录。
返回值
成功则返回当前工作目录,失败返回 FALSE。
在某些 Unix 的变种下,如果任何父目录没有设定可读或搜索模式,即使当前目录设定了, getcwd() 还是会返回 FALSE。有关模式与权限的更多信息见 chmod()。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment