From 293d667dd9be7f11f81fc52ee6cecab8ce682d0c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 24 Jul 2021 14:51:04 -0400 Subject: Add version number --- slowbaud.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'slowbaud.c') diff --git a/slowbaud.c b/slowbaud.c index 2cfb138..92cea21 100644 --- a/slowbaud.c +++ b/slowbaud.c @@ -1,6 +1,7 @@ /* Simulate low bitrate serial connection, like a 1980s modem. Author: B. Watson. License: WTFPL. */ +#define VERSION "0.1.0" /* configurables: */ #define FRACTIONAL_USEC @@ -264,6 +265,7 @@ void benchmark(char **args) { } void usage(int exitstat) { + printf("slowbaud " VERSION ", (c) 2021 B. Watson, WTFPL.\n"); printf("Usage: %s [] [ [ ...]]\n", self); printf(" With no filenames, reads stdin.\n"); printf("or: %s [] -c [ [ ...]]\n", self); -- cgit v1.2.3