Mercurial > hg > toybox
view toys/pwd.c @ 146:99e651512aa4
Get toysh.c to start using the option parsing logic, and some minor cleanup.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 19 Oct 2007 19:12:48 -0500 |
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; }