strcasestr.c\string\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/strcasestr.c
blob: af109f3611bd4d917fc9311308006b867bcd8780 (plain) (blame)
1
2
3
4
5
6
7
8
9
#define _GNU_SOURCE
#include <string.h>
char *strcasestr(const char *h, const char *n)
{
	size_t l = strlen(n);
	for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h;
	return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月02日 01:33:14 +0000

AltStyle によって変換されたページ (->オリジナル) /