diff options
author | B. Watson <urchlay@slackware.uk> | 2024-05-10 17:24:40 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-05-10 17:24:40 -0400 |
commit | f9dcbdd176785dfc9d49f3113ec6110199e9a246 (patch) | |
tree | f132ba50240e442f3c669bdbbfe014843db47701 /ksiders/sortatr.c | |
parent | 516fd094e69c64cecab68ce7a7751c0fa5d868ef (diff) | |
download | bw-atari8-tools-f9dcbdd176785dfc9d49f3113ec6110199e9a246.tar.gz |
import ken siders atr utilities.
Diffstat (limited to 'ksiders/sortatr.c')
-rw-r--r-- | ksiders/sortatr.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ksiders/sortatr.c b/ksiders/sortatr.c new file mode 100644 index 0000000..394dc28 --- /dev/null +++ b/ksiders/sortatr.c @@ -0,0 +1,39 @@ +/* Copyright 1997 Ken Siders */ + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include "atr.h" +#include "atdos.h" + +/* SortAtr */ + + +int main( int argc, char **argv) + { + int stat; + + printf("SortATR v0.9 (C)1997 Ken Siders\n"); + printf("This program may be freely distributed\n\n"); + + if ( argc != 2 ) + { + printf("usage: sortatr atrname\n"); + exit(2); + } + stat = SortAtariDir( argv[1] ); + if ( stat ) + { + printf("Error sorting directory\n"); + exit(3); + } + else + { + printf("no errors\n"); + exit(0); + } + + +} + + |