mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 15:35:10 -04:00
16 lines
255 B
C
16 lines
255 B
C
/* strchr.c
|
|
Look for a character in a string. This works for a null byte. */
|
|
|
|
#include "uucp.h"
|
|
|
|
char *
|
|
strchr (z, b)
|
|
const char *z;
|
|
int b;
|
|
{
|
|
b = (char) b;
|
|
while (*z != b)
|
|
if (*z++ == '\0')
|
|
return NULL;
|
|
return (char *) z;
|
|
}
|