strstr() is part of libkern now. don't supply another.

This commit is contained in:
christos 2002-10-05 01:21:40 +00:00
parent 3d14337121
commit 4b7d7adde4

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: acnetbsd.h - OS specific defines, etc.
* $Revision: 1.3 $
* $Revision: 1.4 $
*
*****************************************************************************/
@ -240,26 +240,4 @@ strupr(char *str)
return(str);
}
#ifdef _KERNEL
/* Or strstr (used in debugging mode, also move to libkern) */
static __inline char *
strstr(char *s, char *find)
{
char c, sc;
size_t len;
if ((c = *find++) != 0) {
len = strlen(find);
do {
do {
if ((sc = *s++) == 0)
return (NULL);
} while (sc != c);
} while (strncmp(s, find, len) != 0);
s--;
}
return ((char *)s);
}
#endif /* _KERNEL */
#endif /* __ACNETBSD_H__ */