axl_strcat
This commit is contained in:
parent
2f31564ce2
commit
a6514f595c
2 changed files with 11 additions and 0 deletions
|
|
@ -52,3 +52,13 @@ i8* axl_strncpy(i8* dst, const i8* src, u32 n)
|
||||||
|
|
||||||
return dst;
|
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);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,6 @@
|
||||||
u32 axl_strlen(const i8* s);
|
u32 axl_strlen(const i8* s);
|
||||||
i8* axl_strcpy(i8* dst, const i8* src);
|
i8* axl_strcpy(i8* dst, const i8* src);
|
||||||
i8* axl_strncpy(i8* dst, const i8* src, u32 n);
|
i8* axl_strncpy(i8* dst, const i8* src, u32 n);
|
||||||
|
i8* axl_strcat(i8* dst, const i8* src);
|
||||||
|
|
||||||
#endif // AXL_STRING
|
#endif // AXL_STRING
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue