diff options
author | B. Watson <yalhcru@gmail.com> | 2021-07-24 14:51:04 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-07-24 14:51:04 -0400 |
commit | 293d667dd9be7f11f81fc52ee6cecab8ce682d0c (patch) | |
tree | 05e4c5d781372c41dc2dfd34b83d9d278f7eee3b | |
parent | 5cc08ed2e9c465e0e8290410fc0a10e5737fc058 (diff) | |
download | slowbaud-293d667dd9be7f11f81fc52ee6cecab8ce682d0c.tar.gz |
Add version number
-rw-r--r-- | slowbaud.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |