File:  [Research Unix] / researchv10dc / man / adm / man3 / getwd.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH GETWD 3
.CT 2 dirs
.SH NAME
getwd, getcwd \(mi get current directory
.SH SYNOPSIS
.B char *getwd(buf)
.br
.B char *buf;
.PP
.B char *getcwd(buf, size)
.br
.B char *buf;
.SH DESCRIPTION
.I Getwd
and
.I getcwd
fill
.I buf
with a null-terminated string representing the current directory
and return
.IR buf .
.PP
.I Getwd
is in the style of BSD systems and
.I getcwd
in that of System V.
If
.I buf
is 0,
.I getcwd
will call
.IR malloc (3)
to allocate
.I size
bytes for the buffer.
.SH "SEE ALSO
.IR pwd (1)
.SH DIAGNOSTICS
On error, zero is returned and
.I buf
is filled with a diagnostic message.

unix.superglobalmegacorp.com

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