diff options
Diffstat (limited to 'convert-to-domino-tiles.c')
| -rw-r--r-- | convert-to-domino-tiles.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/convert-to-domino-tiles.c b/convert-to-domino-tiles.c new file mode 100644 index 0000000..abb33f4 --- /dev/null +++ b/convert-to-domino-tiles.c @@ -0,0 +1,22 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("[-h | -v]"); + + +int +main(int argc, char *argv[]) +{ + int vertical = 0; + + ARGBEGIN { + case 'h': vertical = 0; break; + case 'v': vertical = 1; break; + default: + usage(); + } ARGEND; + if (argc) + usage(); + + return convert(vertical ? &libcharconv_domino_tiles_vertical : &libcharconv_domino_tiles_horizontal); +} |
