use postfix and variable initialisation

This commit is contained in:
kdx
2023-06-18 16:15:44 +02:00
parent 54523b29c0
commit 29c3992343
12 changed files with 34 additions and 44 deletions

View File

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