summaryrefslogtreecommitdiff
path: root/na/lib/string/index.c
blob: 8f6894c61a5363e55faab545af41b8b6c8fdc7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
/* SPDX-License-Identifier: MIT */
/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */

#define _BSD_SOURCE
#include <string.h>
#include <strings.h>

char *index(const char *s, int c)
{
	return strchr(s, c);
}