Mercurial > hg > toybox
view toys/pwd.c @ 162:0864aec90026
Add an option to let touch extend or truncate a file and rename the err label to time_error to reduce confusion.
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sat, 10 Nov 2007 10:03:01 +0000 |
parents | 7c77c6ec17ee |
children | 25447caf1b4b |
line wrap: on
line source
/* 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; }