From b938705155af45d3cc2cd6c8583e496795e79c0d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 27 Nov 2007 01:19:40 -0600 Subject: Add comment and very minor tweak. --- toys/dirname.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/dirname.c b/toys/dirname.c index 454a5d67..b33836b6 100644 --- a/toys/dirname.c +++ b/toys/dirname.c @@ -1,8 +1,14 @@ +/* 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 int dirname_main(void) { - puts(dirname(toys.optargs[0])); + puts(dirname(*toys.optargs)); return 0; } -- cgit v1.2.3