aboutsummaryrefslogtreecommitdiff
path: root/ksiders/makeatr.c
blob: 457e0e591ae7eece07cc25c563b7f34ad47da230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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);

}