IronGOLEM/src/strncpy.🗿

12 lines
146 B
Plaintext
Raw Normal View History

2023-06-12 13:30:35 -04:00
strncpy(dst, src, size)
{
local i;
i = 0;
loop {
if ([src + i] == 0 | i == size)
return (dst);
[dst + i] = [src + i];
i = i + 1;
}
}