fixed #include -> #include in certain cases, found a new bug

This commit is contained in:
pommicket 2022-02-08 22:17:28 -05:00
parent d7a9a565a9
commit c548b12bbb
4 changed files with 4922 additions and 2 deletions

View file

@ -322,7 +322,7 @@ function memccpy
memccpy_advance(&dest, &src, terminator)
return dest
; like C, but returns 0
; like C, but doesn't return anything
; also, you can copy overlapping regions as long as dest < src.
function memcpy
argument dest
@ -340,6 +340,18 @@ function memcpy
n -= 1
goto memcpy_loop
; like C, but doesn't return anything
function memset
argument dest
argument c
argument n
:memset_loop
if n == 0 goto return_0
*1dest = c
dest += 1
n -= 1
goto memset_loop
function strlen
argument s
local p