** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sdf-2.c,v 1.1 2000/04/28 13:02:44 kevin Exp $
+** $Id: sdf-2.c,v 1.3 2000/05/11 01:06:30 kevin Exp $
** $Log: sdf-2.c,v $
-** Revision 1.1 2000/04/28 13:02:44 kevin
-** Initial revision
+** Revision 1.3 2000/05/11 01:06:30 kevin
+** Changed sprintf to snprintf
+**
+** Revision 1.2 2000/05/08 20:02:32 kevin
+** ANSI C changes
+**
+** Revision 1.1.1.1 2000/04/28 13:02:44 kevin
+** Initial CVS import for first public release
+**
**
**
** This program is free software; you can redistribute it and/or modify
#include "ct.h"
-#define O_ADD 1
-#define O_SUB 2
-#define O_MUL 3
-#define O_COMP 4
-#define O_VERBOSE 7
-#define O_HELP 8
-#define O_VERSION 9
+enum {O_ADD, O_SUB, O_MUL, O_COMP, O_VERBOSE, O_HELP, O_VERSION};
static struct option my_options[] =
{
fprintf(stdout, " --mul Multiply images\n");
fprintf(stdout, " --comp Compare images\n");
fprintf(stdout, " --verbose Verbose modem\n");
- fprintf(stdout," --version Print version\n");
+ fprintf(stdout, " --version Print version\n");
fprintf(stdout, " --help Print this help message\n");
exit(1);
}