axl_strcpy
This commit is contained in:
parent
32f1b61324
commit
e7e337c873
2 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue