aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-07-24 14:51:04 -0400
committerB. Watson <yalhcru@gmail.com>2021-07-24 14:51:04 -0400
commit293d667dd9be7f11f81fc52ee6cecab8ce682d0c (patch)
tree05e4c5d781372c41dc2dfd34b83d9d278f7eee3b
parent5cc08ed2e9c465e0e8290410fc0a10e5737fc058 (diff)
downloadslowbaud-293d667dd9be7f11f81fc52ee6cecab8ce682d0c.tar.gz
Add version number
-rw-r--r--slowbaud.c2
1 files changed, 2 insertions, 0 deletions
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 [<bits-per-sec>] [<file> [<file> ...]]\n", self);
printf(" With no filenames, reads stdin.\n");
printf("or: %s [<bits-per-sec>] -c [<command> [<arg> ...]]\n", self);