Unify memset usage across platforms and core:c/libc

This commit is contained in:
gingerBill
2021-09-10 15:59:14 +01:00
parent c519ab9401
commit 12af657369
7 changed files with 4 additions and 174 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package libc
import "core:runtime"
// 7.24 String handling
when ODIN_OS == "windows" {
@@ -37,7 +38,7 @@ foreign libc {
strtok :: proc(s1: [^]char, s2: cstring) -> [^]char ---
// 7.24.6 Miscellaneous functions
memset :: proc(s: rawptr, c: int, n: size_t) -> rawptr ---
memset : proc(s: rawptr, c: int, n: size_t) -> rawptr : runtime.memset
strerror :: proc(errnum: int) -> [^]char ---
strlen :: proc(s: cstring) -> size_t ---
}