⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getcwd.3

📁 操作系统设计与实现源码
💻 3
字号:


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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -