Mercurial > hg > toybox
view toys/dirname.c @ 183:93899f7c3e0c
Rebuild toybox when a header file changes
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sun, 25 Nov 2007 16:54:29 +0000 |
parents | 0e94f5f14f08 |
children | 25447caf1b4b |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* dirname.c - print directory portion of path, or "." if none. * * See http://www.opengroup.org/onlinepubs/009695399/utilities/dirname.html */ #include "toys.h" #include <libgen.h> int dirname_main(void) { puts(dirname(*toys.optargs)); return 0; }