DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
(BSD System Compatibility)

getwd(3bsd)


getwd -- (BSD) get current working directory pathname

Synopsis

   /usr/ucb/cc [flag . . . ] file . . .
   

#include <sys/param.h>

char *getwd(char pathname[MAXPATHLEN]);

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 and places a message in pathname if an error occurs.

References

getcwd(3C)


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004