/*
* 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>
#include <ctype.h>
#include <locale.h>
static void instruct(void);
static void map_lower(char *);
/* look in biblio for record matching keywords */
int
{
#if !defined(TEXT_DOMAIN)
#endif
(void) textdomain(TEXT_DOMAIN);
\tfinds citations specified on standard input\n"), stderr);
exit(1);
}
if (access(s, 0) == -1) {
if (access(s, 0) == -1) {
perror(s);
nor reference file %s found\n"), s, s);
exit(1);
}
}
if (*s == 'y')
instruct();
}
if (*s == '\n')
goto again;
if (strlen(s) <= 3)
goto again;
exit(1);
}
map_lower(s);
goto again;
}
return (0);
}
static void
{
for (; *s; ++s)
if (isupper(*s))
*s = tolower(*s);
}
static void
instruct(void)
{
"\nType keywords (such as author and date) after the > prompt.\n\
References with those keywords are printed if they exist;\n\
\tif nothing matches you are given another prompt.\n\
To quit lookbib, press CTRL-d after the > prompt.\n\n"), stderr);
}