-/* $Id$ */
#include "tif_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <memory.h>
#include <ctype.h>
#ifdef HAVE_STRINGS_H
{
c = str[tagindx] = getc(ifile);
if (c == EOF)
- return -1;
+ {
+ free(str);
+ return -1;
+ }
}
str[ taglen ] = 0;
c=fgetc(file);
if (c == EOF || c == '\n')
break;
- if (((int)q - (int)b + 1 ) >= (int) len)
+ if (((long)q - (long)b + 1 ) >= (long) len)
{
- int
+ long
tlen;
- tlen=(int)q-(int)b;
+ tlen=(long)q-(long)b;
len<<=1;
b=(char *) realloc((char *) b,(len+2));
if ((char *) b == (char *) NULL)
int
tlen;
- tlen=(int)q - (int)b;
+ tlen=(long)q - (long)b;
if (tlen == 0)
return (char *) NULL;
b[tlen] = '\0';
if( argc < 2 )
{
- printf(usage);
+ puts(usage);
return 1;
}
}
else
{
- printf(usage);
+ puts(usage);
return 1;
}
}
return 0;
}
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */