/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
static int cgate = 0;
extern char *comname;
static char *cbp;
extern int hash();
extern char *trimnl();
static void cominit(void);
static int c_look(char *, int);
int
common(char *s)
{
return (c_look(s, 1));
}
static void
cominit(void)
{
int i;
FILE *f;
cgate = 1;
if (f == NULL)
return;
for (i = 0; i < comcount; i++) {
break;
while (*cbp++)
;
}
fclose(f);
}
static int
{
int h;
while (cwds[h] != 0) {
return (1);
h = (h+1) % (COMTSIZE);
}
if (fl == 0)
cwds[h] = s;
return (0);
}