Mercurial > hg > toybox
view toys/pwd.c @ 169:56034b162074
Implement dmesg.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 20 Nov 2007 01:06:29 -0600 |
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; }