axl_strcpy

This commit is contained in:
NukeBird 2025-11-27 20:58:48 +03:00
parent 32f1b61324
commit e7e337c873
2 changed files with 10 additions and 0 deletions

View file

@ -11,3 +11,12 @@ u32 axl_strlen(const i8* s)
return len;
}
i8* axl_strcpy(i8* dst, const i8* src)
{
i8* start = dst;
while((*(dst++) = *(src++)) != '\0');
return start;
}

View file

@ -4,5 +4,6 @@
#include "axl_types.h"
u32 axl_strlen(const i8* s);
i8* axl_strcpy(i8* dst, const i8* src);
#endif // AXL_STRING