xref: /original-bsd/lib/libc/gen/getcwd.3 (revision aba77441)
Copyright (c) 1983 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)getcwd.3 6.1 (Berkeley) 05/15/85

GETWD 3 ""
C 5
NAME
getwd - get current working directory pathname
SYNOPSIS
 char *getwd(pathname)  char *pathname; 
DESCRIPTION
Getwd copies the absolute pathname of the current working directory to pathname and returns a pointer to the result.
LIMITATIONS
Maximum pathname length is MAXPATHLEN characters (1024), as defined in <sys/param.h>.
DIAGNOSTICS
Getwd returns zero and places a message in pathname if an error occurs.
BUGS
Getwd may fail to return to the current directory if an error occurs.