axl_strcat

This commit is contained in:
NukeBird 2025-11-30 17:18:38 +03:00
parent 2f31564ce2
commit a6514f595c
2 changed files with 11 additions and 0 deletions

View file

@ -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);
}

View file

@ -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