49 lines
1.0 KiB
C
Raw Permalink Normal View History

2025-05-08 18:01:52 +08:00
#ifndef _STR_PUB_H_
#define _STR_PUB_H_
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
UINT32 os_strlen(const char *str);
INT32 os_strcmp(const char *s1, const char *s2);
INT32 os_strncmp(const char *s1, const char *s2, const UINT32 n);
INT32 os_snprintf(char *buf, UINT32 size, const char *fmt, ...);
INT32 os_vsnprintf(char *buf, UINT32 size, const char *fmt, va_list ap);
char *os_strncpy(char *out, const char *in, const UINT32 n);
UINT32 os_strtoul(const char *nptr, char **endptr, int base);
char *os_strcpy(char *out, const char *in);
char *os_strchr(const char *s, int c);
char *os_strdup(const char *s);
int os_strcasecmp(const char *s1, const char *s2);
int os_strncasecmp(const char *s1, const char *s2, size_t n);
char *os_strrchr(const char *s, int c);
char *os_strstr(const char *haystack, const char *needle);
size_t os_strlcpy(char *dest, const char *src, size_t siz);
char *strtok_r(char *str, const char *delim, char **saveptr);
#ifdef __cplusplus
}
#endif
#endif // _STR_PUB_H_
// EOF