Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MyGoPrint (0.11 sec)

  1. src/runtime/cgo/handle.go

    // previous example:
    //
    //	package main
    //
    //	/*
    //	extern void MyGoPrint(void *context);
    //	static inline void myprint(void *context) {
    //	    MyGoPrint(context);
    //	}
    //	*/
    //	import "C"
    //	import (
    //		"runtime/cgo"
    //		"unsafe"
    //	)
    //
    //	//export MyGoPrint
    //	func MyGoPrint(context unsafe.Pointer) {
    //		h := *(*cgo.Handle)(context)
    //		val := h.Value().(string)
    //		println(val)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top