diff --git a/c/c.go b/c/c.go index ca6d63d5..c36d90ac 100644 --- a/c/c.go +++ b/c/c.go @@ -85,6 +85,9 @@ func Calloc(num uintptr, size uintptr) Pointer //go:linkname Free C.free func Free(ptr Pointer) +//go:linkname Realloc C.realloc +func Realloc(ptr Pointer, size uintptr) Pointer + //go:linkname Memcpy C.memcpy func Memcpy(dst, src Pointer, n uintptr) Pointer