This commit is contained in:
2026-07-09 09:57:00 +08:00
parent 241096d805
commit e27272c36d
3 changed files with 62 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef INCLUDED_STR_UTIL_H
#define INCLUDED_STR_UTIL_H
#ifndef INCLUDED_OS_TYPES_H
#include <os_types.h>
#endif /*INCLUDED_OS_TYPES_H*/
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
/**
*
* @param haystack
* @param needle
* @return
*/
const char* str_util_strstr(const char* haystack, const char* needle);
/**
*
* @param haystack
* @param needle
* @param needle_len
* @return
*/
const char* str_util_strnstr(const char* haystack, const char* needle, os_size_t needle_len);
#endif /*INCLUDED_STR_UTIL_H*/