IronGOLEM/src/strncpy.🗿

12 lines
137 B
Plaintext

strncpy(dst, src, size)
{
local i = 0;
loop {
if ([src + i] == 0 | i == size)
return (dst);
[dst + i] = [src + i];
i++;
}
}