aboutsummaryrefslogtreecommitdiff
path: root/ksiders/makeatr.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-10 17:24:40 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-10 17:24:40 -0400
commitf9dcbdd176785dfc9d49f3113ec6110199e9a246 (patch)
treef132ba50240e442f3c669bdbbfe014843db47701 /ksiders/makeatr.c
parent516fd094e69c64cecab68ce7a7751c0fa5d868ef (diff)
downloadbw-atari8-tools-f9dcbdd176785dfc9d49f3113ec6110199e9a246.tar.gz
import ken siders atr utilities.
Diffstat (limited to 'ksiders/makeatr.c')
-rw-r--r--ksiders/makeatr.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/ksiders/makeatr.c b/ksiders/makeatr.c
new file mode 100644
index 0000000..457e0e5
--- /dev/null
+++ b/ksiders/makeatr.c
@@ -0,0 +1,41 @@
+/* Copyright 1997 Ken Siders */
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include "atr.h"
+#include "atdos.h"
+
+
+/********************************************************************
+ Testing
+********************************************************************/
+
+
+int main( int argc, char **argv)
+ {
+ int stat = 0;
+
+ printf("MakeAtr Version 0.9u (c)1997 Ken Siders\n");
+ printf("Ported and modified by B. Watson, 2007\n");
+ printf("This program may be freely distributed\n\n");
+
+
+ if (argc != 3)
+ {
+ printf("usage: makeatr atrname.atr file\n\n");
+ }
+ else
+ {
+ stat = CreateBootAtr( argv[1], argv[2] );
+ if ( stat )
+ printf("Error #%d encountered in conversion\n\n", stat);
+ else
+ printf("No errors, %s created successfully\n\n", argv[1]);
+ }
+
+ exit(stat);
+
+}
+
+