diff --git a/axl_string.cpp b/axl_string.cpp index f79d773..207cf84 100644 --- a/axl_string.cpp +++ b/axl_string.cpp @@ -52,3 +52,13 @@ i8* axl_strncpy(i8* dst, const i8* src, u32 n) return dst; } + +i8* axl_strcat(i8* dst, const i8* src) +{ + if(dst == NULL || src == NULL) + { + return dst; + } + + return axl_strcpy(dst + axl_strlen(dst), src); +} diff --git a/axl_string.h b/axl_string.h index f313f5b..8d7b2df 100644 --- a/axl_string.h +++ b/axl_string.h @@ -6,5 +6,6 @@ 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); #endif // AXL_STRING