xref: /titanic_41/usr/src/lib/libast/common/man/getcwd.3 (revision a4dd1f3517267c5e5aa5b2bb53cb388002bc688f)
.fp 5 CW .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

GETCWD 3
NAME
getcwd - return absolute path to current directory
SYNOPSIS
.EX #include <ast.h> char* getcwd(char* buf, size_t len);
DESCRIPTION
.L getcwd copies the absolute path name of the current directory info into buf of length len . The return path may be longer than .LR PATH_MAX . If "buff == 0" then space is allocated via malloc (3) and len extra characters are reserved after the generated path name. A pointer to the path name is returned, .L 0 on error.
"SEE ALSO"
pathcd(3)