File:  [MW Coherent from dump] / coherent / b / lib / libc / string / strpbrk.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * strpbrk.c
 * ANSI 4.11.5.4.
 * Search string for character.
 */

#include <string.h>

char *strpbrk(s1, s2) char *s1; char *s2;
{
	register char *cp1, *cp2;
	register char c1, c2;

	for (cp1 = s1; c1 = *cp1; cp1++)
		for (cp2 = s2; c2 = *cp2; cp2++)
			if (c1 == c2)
				return(cp1);			
	return (NULL);
}

unix.superglobalmegacorp.com

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