Mercurial > hg > toybox
view toys/pwd.c @ 22:64d6e0a2f030
The web page should be in the repository, and while I'm at it let's see if I
can commit a file that lives under a symlink.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 04 Nov 2006 23:57:18 -0500 |
parents | 6475d6c46066 |
children | fb56ba93afa3 |
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(); puts(pwd); if (CFG_TOYS_FREE) free(pwd); return 0; }