File:  [MW Coherent from dump] / coherent / b / lib / libc / gen / old / rindex.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

/*
 * Find rightmost match or return NULL.
 */
#include <stdio.h>

char *
rindex(s, c)
register unsigned char *s;
unsigned int c;
{
	register unsigned char c1, c2, *match;

	for(c2 = c, match = NULL; c1 = *s; s++)
		if(c1 == c2)
			match = s;
	return(match);
}

unix.superglobalmegacorp.com

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