IronGOLEM/src/strcat.🗿
2023-06-12 17:30:35 +00:00

19 lines
205 B
Plaintext

strcat(dst, src)
{
local i;
local j;
i = 0;
loop {
if ([dst + i] == 0)
break;
i = i + 1;
}
j = 0;
loop {
if ([src + j] == 0)
return (dst);
[dst + i + j] = [src + j];
j = j + 1;
}
}