1 2 3 4 5 6 7 8 9 10 11 12
#include <stdint.h> #include <string.h> void strcat(char *dest, char *orig) { u32 s_dest = strlen(dest); u32 s_orig = strlen(orig); for (u32 i = 0; i < s_orig; i++) dest[s_dest + i] = orig[i]; dest[s_dest + s_orig] = 0; }