File:  [CSRG BSD Unix] / 43BSDReno / lib / libc / gen / getwd.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)getwd.3	6.2 (Berkeley) 5/12/86
.\"
.TH GETWD 3 "May 12, 1986"
.UC 5
.SH NAME
getwd \- get current working directory pathname
.SH SYNOPSIS
.nf
.B char *getwd(pathname)
.B char *pathname;
.fi
.SH DESCRIPTION
.I Getwd
copies the absolute pathname of the current working directory to
.I pathname
and returns a pointer to the result.
.SH LIMITATIONS
Maximum pathname length is MAXPATHLEN characters (1024),
as defined in
.I <sys/param.h>.
.SH DIAGNOSTICS
.I Getwd
returns zero and places a message in
.I pathname
if an error occurs.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.