mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
40 lines
1007 B
C
40 lines
1007 B
C
/*
|
|
* Copyright (c) 2006-2024, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2024-09-22 Meco Man the first version
|
|
*/
|
|
|
|
#ifndef __RT_KSTRING_H__
|
|
#define __RT_KSTRING_H__
|
|
|
|
#include <rttypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *rt_memset(void *s, int c, size_t n);
|
|
void *rt_memcpy(void *dest, const void *src, size_t n);
|
|
void *rt_memmove(void *dest, const void *src, size_t n);
|
|
int rt_memcmp(const void *cs, const void *ct, size_t count);
|
|
|
|
char *rt_strdup(const char *s);
|
|
size_t rt_strnlen(const char *s, size_t maxlen);
|
|
char *rt_strstr(const char *str1, const char *str2);
|
|
int rt_strcasecmp(const char *a, const char *b);
|
|
char *rt_strcpy(char *dst, const char *src);
|
|
char *rt_strncpy(char *dest, const char *src, size_t n);
|
|
int rt_strncmp(const char *cs, const char *ct, size_t count);
|
|
int rt_strcmp(const char *cs, const char *ct);
|
|
size_t rt_strlen(const char *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|