Sign in
zircon-guest
/
third_party
/
toybox
/
fb6c09e63653b619f6645617d66ba605077d1d42
/
.
/
toys
/
pwd.c
blob: a6fdd4417ad51640a56a772ef0aa5028880e3144 [
file
]
/* vi: set sw=4 ts=4: */
/*
* pwd.c - Print working directory.
*/
#include
"toys.h"
int
pwd_main
(
void
)
{
char
*
pwd
=
xgetcwd
();
xprintf
(
"%s\n"
,
pwd
);
if
(
CFG_TOYBOX_FREE
)
free
(
pwd
);
return
0
;
}