#include <ctype.h>
#include <assert.h>
#include <time.h>
+#include <stdlib.h>
typedef int bool;
#define FALSE 0
*/
#endif /* isxdigit */
-extern char *malloc();
-extern long atol();
-
extern int LINES, COLS; /* initialize screen size into these */
#ifdef UNIX
*p = 0;
if (strlcmp(ln, prevln) != 0)
(void) fprintf(outf, "%s%c%ld\r\n",
- ln + HDOFF(ln), SEPARATOR, pos);
+ ln + HDOFF(ln), SEPARATOR, (long int)pos);
(void) strcpy(prevln, ln);
}
pos = ftell(inf);
inf = fopen(target, "rb");
if (inf == NULL)
{
- fprintf(stderr, NOINPUT);
+ fputs(NOINPUT, stderr);
exit(1);
}
outf = fopen(target, "wb");
if (outf == NULL)
{
- (void) fprintf(stderr, NOOUTPUT);
+ (void) fputs(NOOUTPUT, stderr);
exit(1);
}
#ifndef AOS
}
FILEINFO;
-/* this function must be defined for vh.c to compile */
-extern void gettext(); /* fetch text from terminal screen */
-
/* entry points of vh.c */
extern void chkindex(); /* check for pathologies in file */
extern void mkindex(); /* generate index for file */