/*
* 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 "refer..c"
#include <locale.h>
extern int prefix();
extern int common();
extern void dumpold();
extern void putref();
extern void flout();
extern int tabs();
extern int chkdup();
extern void putsig();
extern void putkey();
extern void err();
extern int corout();
void choices(char *);
int control(char);
static int newline(char *);
void
{
Iline++;
break;
break;
break;
query = 1;
}
return;
dumpold();
return;
}
answer[0] = 0;
for (p = buff; *p; p++) {
if (isupper(*p))
*p |= 040;
}
for (p = buff; *p; p++) {
if (isalpha(*p))
alph++;
else
if (isdigit(*p))
digs++;
else {
*p = 0;
r = p-alph;
while (r < p)
*r++ = ' ';
}
r = p-digs;
while (r < p)
*r++ = ' ';
}
}
*p = ' ';
}
}
one[0] = 0;
if (buff[0]) { /* do not search if no query */
temp[0] = 0;
"Accumulated answers too large"), 0);
break;
}
}
if (buff[0])
case 0:
return;
default:
p = buff;
while (*p != '\n')
p++;
*++p = 0;
case 1:
if (endpush)
if (bare < 2) {
line, 0);
}
return;
}
if (one[0] == 0)
break;
}
refnum++;
if (sort)
if (bare < 2)
else
flout();
goto again;
}
static int
newline(char *s)
{
int k = 0, c;
while (c = *s++)
if (c == '\n')
k++;
return (k);
}
void
{
int nl;
for (r = p = buff; *p; p++) {
if (*p == '\n') {
*p++ = 0;
nl = 1;
for (q = ob; *q; q++) {
q[1] == 'T') {
q += 3;
for (t = q; *t && *t != '\n'; t++)
;
*t = 0;
q = 0;
break;
}
nl = *q == '\n';
}
if (q)
r = p;
}
}
}
int
control(char c)
{
if (c == '.')
return (1);
if (c == '%')
return (1);
return (0);
}