getwd(3bsd) (BSD System Compatibility)


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)


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.