Пример #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
func Msg() string {
	r := C.GoString(C.msg())
	return r
}