Пример #1
0
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
func testPrintf(t *testing.T) {
	C.say()
}