func mPrintf(format, arg string) *C.char { // TODO may return nil when no memory... cf := C.CString(format) defer C.free(unsafe.Pointer(cf)) ca := C.CString(arg) defer C.free(unsafe.Pointer(ca)) return C.my_mprintf(cf, ca) }
func mPrintf(format, arg string) *C.char { cf := C.CString(format) defer C.free(unsafe.Pointer(cf)) ca := C.CString(arg) defer C.free(unsafe.Pointer(ca)) return C.my_mprintf(cf, ca) }