DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

getwd(S)


getwd -- get current working directory pathname

Syntax

cc . . . -lc
#include <sys/param.h>

char *getwd(char *pathname);

Description

getwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result.

Return values

getwd returns zero if the length of the name of the current working directory is greater than {PATH_MAX}+1.

Files


/lib/libc.a
linking library

See also

getcwd(S)

Standards conformance

getwd is conformant with:

X/Open Portability Guide Issue 4, Version 2 (Spec-1170).


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003