ack/modules/src/string/strindex.c
1994-06-24 11:31:16 +00:00

20 lines
352 B
C

/* $Id$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* strindex() -- (86/03/18 EHB)
*/
#include "ack_string.h"
char *
strindex(s, c)
register char *s;
int c;
{
while (*s)
if (*s++ == c)
return --s;
return (char *)0;
}