ack/modules/src/string/strindex.c

17 lines
343 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(register char *s, int c)
{
while (*s)
if (*s++ == c)
return --s;
return (char *)0;
}