getcwd.3
来自「Unix操作系统minix 2.0源码」· 3 代码 · 共 60 行
3
60 行
GETCWD(3) Minix Programmer's Manual GETCWD(3)
NAME
getcwd - get current working directory pathname
SYNOPSIS
#include <unistd.h>
char *getcwd(char *pathname, size_t len)
DESCRIPTION
Getcwd copies the absolute pathname of the current working directory to
pathname and returns a pointer to the result. Pathname is a character
array of length len.
DIAGNOSTICS
Getcwd returns a null pointer and sets errno if an error occurs. The
error will reflect the system call errors that may occur if the path to
the current directory is searched upwards to the root directory. The
error ERANGE is returned if the result does not fit within len bytes.
5BSD May 12, 1986 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?