diff options
| author | Mattias Andrée <m@maandree.se> | 2026-01-24 14:11:01 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-01-24 14:11:01 +0100 |
| commit | c8b7fdc7294329dc5eaf9f089f83184ece7d098c (patch) | |
| tree | 1059fd3ab69fb9219ef5a6be3f53cd8208015c40 /convert-to-go.c | |
| download | charconv-c8b7fdc7294329dc5eaf9f089f83184ece7d098c.tar.gz charconv-c8b7fdc7294329dc5eaf9f089f83184ece7d098c.tar.bz2 charconv-c8b7fdc7294329dc5eaf9f089f83184ece7d098c.tar.xz | |
First commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'convert-to-go.c')
| -rw-r--r-- | convert-to-go.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/convert-to-go.c b/convert-to-go.c new file mode 100644 index 0000000..4d449e8 --- /dev/null +++ b/convert-to-go.c @@ -0,0 +1,22 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("[-b | -w]"); + + +int +main(int argc, char *argv[]) +{ + int black = 0; + + ARGBEGIN { + case 'b': black = 1; break; + case 'w': black = 0; break; + default: + usage(); + } ARGEND; + if (argc) + usage(); + + return convert(black ? &libcharconv_go_black : &libcharconv_go_white); +} |
