Luna/libluna/include/luna/CString.h

38 lines
1.1 KiB
C
Raw Normal View History

2022-11-13 09:30:10 +00:00
#pragma once
#include <luna/Types.h>
2022-11-13 09:30:10 +00:00
2022-11-13 11:20:53 +00:00
extern "C"
2022-11-13 09:30:10 +00:00
{
2022-11-20 17:29:23 +00:00
void* memcpy(void* dest, const void* src, usize n);
void* memset(void* buf, int c, usize n);
int memcmp(const void* a, const void* b, usize n);
void* memmove(void* dest, const void* src, usize n);
2023-01-22 10:27:37 +00:00
2022-11-20 17:29:23 +00:00
usize strlen(const char* str);
2023-01-22 10:27:37 +00:00
usize strnlen(const char* str, usize max);
2022-12-19 11:20:56 +00:00
int strcmp(const char* a, const char* b);
int strncmp(const char* a, const char* b, usize max);
2022-12-16 19:37:57 +00:00
usize strspn(const char* str, const char* accept);
usize strcspn(const char* str, const char* reject);
char* strtok(char* str, const char* delim);
usize wcslen(const wchar_t* str);
2022-12-16 19:37:57 +00:00
char* strdup(const char* str);
2023-01-22 10:27:37 +00:00
char* strndup(const char* str, usize max);
2023-02-27 14:03:22 +00:00
usize strlcpy(char* dest, const char* src, usize len);
[[deprecated]] char* strcpy(char* dst, const char* src);
[[deprecated]] char* strcat(char* dst, const char* src);
char* strncpy(char* dest, const char* src, size_t max);
char* strncat(char* dest, const char* src, size_t max);
char* strchr(const char* str, int c);
char* strrchr(const char* str, int c);
2023-01-02 12:07:29 +00:00
}