-char *disclaimer = "\
+char disclaimer[] = "\
This program is Copyright (c) University of British Columbia.\n\
All rights reserved. It may be freely redistributed in its\n\
entirety provided that this copyright notice is not removed.\n\
/* define color mode strings */
-char *plane_int_string = "plane by plane",
- *line_int_string = "line intlv",
- *pixel_int_string = "sample intlv";
+char plane_int_string[] = "plane by plane",
+ line_int_string[] = "line intlv",
+ pixel_int_string[] = "sample intlv";
/* function to print out error messages */
-void error(char *msg) {
+void error(const char *msg) {
fprintf(stderr, msg);
exit(-1);
}
/* for writing disclaimer to command line in DOS */
-char *ttyfilename = "CON";
+char ttyfilename[] = "CON";
#define PAUSE 20
#define DEFAULT_COLOR_MODE LINE_INT
-extern char *plane_int_string,
- *line_int_string,
- *pixel_int_string;
-
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 1
#define RIGHTMARGIN 1
-extern char *disclaimer;
-
/* alphabet size */
#define MAXA8 (256)
/****** Function prototypes */
/* global.c */
-void error(char *msg);
+void error(const char *msg);
void *safealloc(size_t size);
void *safecalloc(size_t numels, size_t size);
double get_utime();