[hackers] [sbase] The style inquisition on basename. || Christoph Lohmann
commit 52d39e35c2468510c356335fb78b604c7f3d3bba
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Tue Mar 5 21:35:55 2013 +0100
The style inquisition on basename.
diff --git a/basename.c b/basename.c
index db51ce1..8443132 100644
--- a/basename.c
+++ b/basename.c
_AT_@ -3,10 +3,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "util.h"
static void usage(void);
+void
+usage(void)
+{
+ eprintf("usage: %s name [suffix]
", argv0);
+}
+
int
main(int argc, char *argv[])
{
_AT_@ -27,13 +34,9 @@ main(int argc, char *argv[])
if(!strcmp(&s[n], argv[1]))
s[n] = '
Received on Tue Mar 05 2013 - 21:38:18 CET
This archive was generated by hypermail 2.3.0
: Tue Mar 05 2013 - 21:48:08 CET