优化
This commit is contained in:
@@ -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*/
|
||||
Reference in New Issue
Block a user