5 static inline int16_t
strlen(
const char* str) {
7 while (str[index]) index++;
11 int strcmp(
const char*,
const char*);
12 static inline int16_t
strchr(
const char* str,
char chr) {
22 static inline int16_t
strstr(
const char* src,
const char* tar) {
23 int16_t src_size =
strlen(src);
24 int16_t tar_size =
strlen(tar);
26 for (
int i = 0; i < src_size; ++i) {
27 for (
int j = 0; j < tar_size; ++j) {
28 if (!tar[j] || !src[i+j] || src[i+j] != tar[j]) {
static int16_t strstr(const char *src, const char *tar)
static int16_t strchr(const char *str, char chr)
int strcmp(const char *, const char *)
static int16_t strlen(const char *str)