// fd = stdin;
fd = gzdopen(STDIN_FILENO, "r");
} else {
- if ( (fd = gzopen(file, "r")) == NULL ) {
+ if ( (fd = gzopen(file, "rb")) == NULL ) {
printf("Cannot gzopen %s\n", file);
return(0);
}
// return next token from input stream
-static void next_token(gzFile *fd, char *token) {
+static void next_token(gzFile fd, char *token) {
int i, result;
char c;
// return next integer from input stream
-static int next_int(gzFile *fd) {
+static int next_int(gzFile fd) {
char token[80];
next_token(fd, token);
// return next double from input stream
-static double next_double(gzFile *fd) {
+static double next_double(gzFile fd) {
char token[80];
next_token(fd, token);
// return next exponential num from input stream
-static int next_exp(gzFile *fd) {
+static int next_exp(gzFile fd) {
char token[80];
double mantissa;
int exp, acc;
int fgDEM::parse( void ) {
int i;
- cur_row = 0;
+ cur_col = 0;
read_a_record();
// $Log$
+// Revision 1.6 1998/05/02 01:49:21 curt
+// Fixed a bug where the wrong variable was being initialized.
+//
+// Revision 1.5 1998/04/25 15:00:32 curt
+// Changed "r" to "rb" in gzopen() options. This fixes bad behavior in win32.
+//
+// Revision 1.4 1998/04/22 13:14:46 curt
+// Fixed a bug in zlib usage.
+//
// Revision 1.3 1998/04/18 03:53:05 curt
// Added zlib support.
//