mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Unify memset usage across platforms and core:c/libc
This commit is contained in:
@@ -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 ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user