mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
cgo: add support for C.CString and related functions
This commit is contained in:
committed by
Ron Evans
parent
6bd18af5ef
commit
c31aef06ba
@@ -42,6 +42,9 @@ func memzero(ptr unsafe.Pointer, size uintptr)
|
||||
//export strlen
|
||||
func strlen(ptr unsafe.Pointer) uintptr
|
||||
|
||||
//export malloc
|
||||
func malloc(size uintptr) unsafe.Pointer
|
||||
|
||||
// Compare two same-size buffers for equality.
|
||||
func memequal(x, y unsafe.Pointer, n uintptr) bool {
|
||||
for i := uintptr(0); i < n; i++ {
|
||||
|
||||
Reference in New Issue
Block a user