IronGOLEM/src/strncpy.🗿

12 lines
137 B
Plaintext
Raw Normal View History

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