27 lines
810 B
C
27 lines
810 B
C
#ifndef AXL_STRING_H
|
|
#define AXL_STRING_H
|
|
#include "axl_types.h"
|
|
|
|
u32 axl_strlen(const i8* s);
|
|
i8* axl_strcpy(i8* dst, const i8* src);
|
|
i8* axl_strncpy(i8* dst, const i8* src, u32 n);
|
|
i8* axl_strcat(i8* dst, const i8* src);
|
|
i8* axl_strncat(i8* dst, const i8* src, u32 n);
|
|
i32 axl_strcmp(const i8* s1, const i8* s2);
|
|
i32 axl_strncmp(const i8* s1, const i8* s2, u32 n);
|
|
const i8* axl_strchr(const i8* str, i8 c);
|
|
i8* axl_strstr(const i8* str, const i8* substr);
|
|
|
|
#ifdef AXL_MIMIC_STDLIB
|
|
#define strlen axl_strlen
|
|
#define strcpy axl_strcpy
|
|
#define strncpy axl_strncpy
|
|
#define strcat axl_strcat
|
|
#define strncat axl_strncat
|
|
#define strcmp axl_strcmp
|
|
#define strncmp axl_strncmp
|
|
#define strchr axl_strchr
|
|
#define strstr axl_strstr
|
|
#endif
|
|
|
|
#endif // AXL_STRING
|