Files

31 lines
716 B
C
Raw Permalink Normal View History

2022-08-25 23:46:24 -04:00
#ifndef _STRING_H_
#define _STRING_H_
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
2022-09-05 00:00:04 -04: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);
2022-10-04 22:17:40 -07:00
void __fill_mem(void* dst, int val, size_t n);
2022-09-05 00:00:04 -04:00
#pragma section code_type
2022-08-25 23:46:24 -04: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);
2025-05-21 09:15:56 -07:00
char* strchr(const char* str, int chr);
2022-08-25 23:46:24 -04:00
2025-09-29 15:00:39 -07:00
int memcmp(const void* a, const void* b, size_t n);
2022-08-25 23:46:24 -04:00
#ifdef __cplusplus
}
#endif
#endif