sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 7182076473516c2a40d653ef42d940d9833a918c
parent f54c7b4cac5c5ff3251828691a475e40b4f9cb0e
Author: sin <sin@2f30.org>
Date:   Mon,  7 Oct 2013 16:07:19 +0100

Add a usage() function like everywhere else

Diffstat:
Mcat.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cat.c b/cat.c @@ -6,6 +6,12 @@ #include "text.h" #include "util.h" +static void +usage(void) +{ + eprintf("usage: %s [file...]\n", argv0); +} + int main(int argc, char *argv[]) { @@ -14,7 +20,7 @@ main(int argc, char *argv[]) ARGBEGIN { default: - eprintf("usage: %s [files...]\n", argv0); + usage(); } ARGEND; if(argc == 0) {