fixed #include -> #include in certain cases, found a new bug
This commit is contained in:
parent
d7a9a565a9
commit
c548b12bbb
4 changed files with 4922 additions and 2 deletions
14
05/util.b
14
05/util.b
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue