forked from starnakin/IronGOLEM
12 lines
146 B
Plaintext
12 lines
146 B
Plaintext
|
strncpy(dst, src, size)
|
||
|
{
|
||
|
local i;
|
||
|
i = 0;
|
||
|
loop {
|
||
|
if ([src + i] == 0 | i == size)
|
||
|
return (dst);
|
||
|
[dst + i] = [src + i];
|
||
|
i = i + 1;
|
||
|
}
|
||
|
}
|