File:  [MW Coherent from dump] / coherent / d / bin / uucheck / uucheckname / lookup.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* lookup.c - search a list of well known names for a proposed name.
 * part of uucheckname, part of uucheck
 */
#include <stdio.h>
#include "uucheckname.h"

char *
lookup(aname, table)
	char *aname;
	char *table[];
{
	int i;

	for(i = 0; table[i] != NULL; ++i) {
		if (strcmp(table[i], aname) == 0) {
			break;
		} /* if aname matches a table entry  */
	} /* for i = 0 to last table entry */

	/* Return value will be NULL iff we didn't find the name.  */
	return(table[i]);
} /* lookup() */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.