Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getwd(3) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

GETWD(3)  —  NEWS-OS Programmer’s Manual

名称

getwd  −  カレントワーキングディレクトリのパス名を得る

形式

char ∗getwd(pathname)
char ∗pathname;

解説

getwd は、 カレントワーキングディレクトリの絶対パス名を pathname にコピーし、 その結果を 指すポインタを 返します。

制限

パス名の最大の長さは、 <sys/param.h> で定義されているとおり、 MAXPATHLEN バイト (1024) です。

診断

エラーが生じた場合には、 getwd はゼロを返し、 メッセージを pathname に置きます。

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026