Mercurial > hg > toybox
view toys/pwd.c @ 90:7c77c6ec17ee
Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 31 Jan 2007 14:37:01 -0500 |
parents | fb56ba93afa3 |
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; }