- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for bridge_int_func (0.1 sec)
-
src/cmd/cgo/doc.go
package main // typedef int (*intFunc) (); // // int // bridge_int_func(intFunc f) // { // return f(); // } // // int fortytwo() // { // return 42; // } import "C" import "fmt" func main() { f := C.intFunc(C.fortytwo) fmt.Println(int(C.bridge_int_func(f))) // Output: 42 } In C, a function argument written as a fixed size array
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 01 22:52:54 UTC 2024 - 44K bytes - Viewed (0)