Mercurial > hg > toybox
view toys/pwd.c @ 198:3227c5316260
Update links and add some more spec comments.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 11 Dec 2007 15:41:31 -0600 |
parents | 25447caf1b4b |
children | d4176f3f3835 |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * pwd.c - Print working directory. */ #include "toys.h" void pwd_main(void) { char *pwd = xgetcwd(); xprintf("%s\n", pwd); if (CFG_TOYBOX_FREE) free(pwd); }