示例#1
0
文件: hello.go 项目: Garfiled/Rep
func main() {

	C.sayhello()
	i := 100
	ip := unsafe.Pointer(&i)
	C.add((*C.int)(ip))
	fmt.Println(i)
	C.say((*C.int)(ip))
	fmt.Println(i)
}
示例#2
0
文件: issue3945.go 项目: h8liu/golang
func testPrintf(t *testing.T) {
	C.say()
}