DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

getwd(S-osr5)


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-osr5)

Standards conformance

getwd is conformant with:

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


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005