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