Add other constants to c and libc
This commit is contained in:
1 parent
297cdde144
commit
9980f81062
5 files changed
+14
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package runtime
|
||||
|
||||
@(link_name="memset")
|
||||
memset :: proc "c" (ptr: rawptr, val: i32, len: int) -> rawptr #no_bounds_check {
|
||||
memset :: proc "c" (ptr: rawptr, val: i32, len: uint) -> rawptr #no_bounds_check {
|
||||
if ptr != nil && len != 0 {
|
||||
b := byte(val)
|
||||
p := ([^]byte)(ptr)
|
||||
|
||||
Reference in new issue
Block a user