示例#1
0
func Msg(m []string) {
	l := C.int(len(m))
	argv := C.newCArray(l)
	for i, v := range m {
		C.setCArray(argv, C.int(i), C.CString(v))
	}
	defer C.freeCArray(argv, l)
	C.msg(l, argv)
}
示例#2
0
文件: ponte.go 项目: viliamjr/lab
func Msg() string {
	r := C.GoString(C.msg())
	return r
}