2022-08-26 03:46:24 +00:00
|
|
|
#ifndef _STRING_H_
|
|
|
|
#define _STRING_H_
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-09-05 04:00:04 +00:00
|
|
|
#pragma section code_type ".init"
|
|
|
|
void* memcpy(void* dst, const void* src, size_t n);
|
|
|
|
void* memset(void* dst, int val, size_t n);
|
|
|
|
void __fill_mem(void* dst, int val, unsigned long n);
|
|
|
|
#pragma section code_type
|
2022-08-26 03:46:24 +00:00
|
|
|
|
|
|
|
size_t strlen(const char* s);
|
|
|
|
char* strcpy(char* dest, const char* src);
|
|
|
|
char* strncpy(char* dest, const char* src, size_t num);
|
|
|
|
int strcmp(const char* s1, const char* s2);
|
|
|
|
int strncmp(const char* s1, const char* s2, size_t n);
|
|
|
|
char* strncat(char* dest, const char* src, size_t n);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|