diff options
author | June McEnroe <june@causal.agency> | 2017-01-21 18:10:14 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-01-21 18:10:14 -0500 |
commit | ef766160bfd6eca50044eae6c86142f5e7b29ee8 (patch) | |
tree | cf5ffc2af3cd19bc3ea354a2f7d9d7f9873eda84 | |
parent | Update README (diff) | |
download | src-ef766160bfd6eca50044eae6c86142f5e7b29ee8.tar.gz src-ef766160bfd6eca50044eae6c86142f5e7b29ee8.zip |
Add short descriptions to C utilities
Diffstat (limited to '')
-rwxr-xr-x | .bin/clock.c | 2 | ||||
-rwxr-xr-x | .bin/jrp.c | 2 | ||||
-rwxr-xr-x | .bin/pbcopy.c | 2 | ||||
-rwxr-xr-x | .bin/pbd.c | 2 | ||||
-rwxr-xr-x | .bin/xx.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/.bin/clock.c b/.bin/clock.c index 43bad259..f153126a 100755 --- a/.bin/clock.c +++ b/.bin/clock.c @@ -2,6 +2,8 @@ exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/clock $0 #endif +// Fuzzy clock for display in tmux. + #include <time.h> #include <stdio.h> #include <sysexits.h> diff --git a/.bin/jrp.c b/.bin/jrp.c index d6a9272f..9317ac8e 100755 --- a/.bin/jrp.c +++ b/.bin/jrp.c @@ -2,6 +2,8 @@ exec cc -Wall -Wextra -pedantic $@ $0 -ledit -o $(dirname $0)/jrp #endif +// JIT RPN calculator. + #include <err.h> #include <histedit.h> #include <stdbool.h> diff --git a/.bin/pbcopy.c b/.bin/pbcopy.c index c341497a..852da68d 100755 --- a/.bin/pbcopy.c +++ b/.bin/pbcopy.c @@ -3,6 +3,8 @@ cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/pbcopy $0 && \ exec cc -Wall -Wextra -pedantic -DPBPASTE $@ -o $(dirname $0)/pbpaste $0 #endif +// pbcopy and pbpaste implementation which connects to pbd. + #include <arpa/inet.h> #include <err.h> #include <netinet/in.h> diff --git a/.bin/pbd.c b/.bin/pbd.c index fda7c941..b01f80c3 100755 --- a/.bin/pbd.c +++ b/.bin/pbd.c @@ -2,6 +2,8 @@ exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/pbd $0 #endif +// TCP server which pipes between macOS pbcopy and pbpaste. + #include <err.h> #include <netinet/in.h> #include <stdint.h> diff --git a/.bin/xx.c b/.bin/xx.c index 9ffd0b9b..6af0d6a7 100755 --- a/.bin/xx.c +++ b/.bin/xx.c @@ -2,6 +2,8 @@ exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/xx $0 #endif +// Hexdump. + #include <ctype.h> #include <err.h> #include <stdbool.h> |