summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-31 14:13:42 -0400
committerJune McEnroe <june@causal.agency>2020-05-31 14:13:42 -0400
commitd92bdfe4bf1ac7cc0804aa2a06a4748cee38fc5d (patch)
treed77e080ee928a7cc8e19e5527d4fbd1f22ead1fd
parentAdd c script to README (diff)
downloadsrc-d92bdfe4bf1ac7cc0804aa2a06a4748cee38fc5d.tar.gz
src-d92bdfe4bf1ac7cc0804aa2a06a4748cee38fc5d.zip
Add %c conversion to c script
-rw-r--r--bin/c.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/c.sh b/bin/c.sh
index f3e651ba..153a2f94 100644
--- a/bin/c.sh
+++ b/bin/c.sh
@@ -49,6 +49,7 @@ if [ -n "${expr:-}" ]; then
 	printf(
 		_Generic(
 			${expr},
+			char: "%c\n",
 			char *: "%s\n",
 			wchar_t *: "%ls\n",
 			signed char: "%hhd\n",