diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-27 02:43:50 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-27 02:43:50 -0400 |
commit | 8fdeb2dfc85b7b3be7a952ca71e3e742c2588ef7 (patch) | |
tree | 8ae5e7dd5bf2ede0d56e308a9bfcc12dbd1f85f0 /f2toxex.c | |
parent | eb5931167b60e44a8bdbcaf2e4b59e8112ac02b1 (diff) | |
download | bw-atari8-tools-8fdeb2dfc85b7b3be7a952ca71e3e742c2588ef7.tar.gz |
f2toxex: remove, rethought this and decided xexcat will do this job.
Diffstat (limited to 'f2toxex.c')
-rw-r--r-- | f2toxex.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/f2toxex.c b/f2toxex.c deleted file mode 100644 index c2a4934..0000000 --- a/f2toxex.c +++ /dev/null @@ -1,64 +0,0 @@ -#include <stdio.h> -#include <stdint.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> - -#include "xex.h" - -#define SELF "f2toxex" - -void version() { - printf(SELF " " VERSION "\n"); -} - -void usage() { - version(); - printf(" Usage: " SELF " [-h | -v] | infile [outfile]\n"); -} - -char *make_outfile(char *infile) { -} - -int main(int argc, char **argv) { - int c; - char *infile, *outfile; - - while( (c = getopt(argc, argv, "hv")) > 0) { - switch(c) { - case 'h': - usage(); - exit(0); - break; - case 'v': - version(); - exit(0); - break; - default: - fprintf(stderr, SELF ": unknown option '-%c'.\n", c); - usage(); - exit(1); - break; - } - } - - if(argc > optind) { - infile = argv[optind]; - optind++; - } - - if(argc > optind) { - strcpy(outfile, argv[optind]); - optind++; - - if(argc > optind) - fprintf(stderr, SELF ": " - "ignoring extra junk on command line: '%s'.\n", argv[optind]); - } else if(strcmp(infile, "-") != 0) { - outfile = make_outfile(infile); - } - - - return 0; -} |