aboutsummaryrefslogtreecommitdiff
path: root/ksiders/sortatr.c
blob: 394dc286adfccce7a6a89621ab9d97edbf4b1896 (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
/* 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);
      }


}