Exemplo n.º 1
0
func System(cmd string) int {
	return int(C.system(C.CString(cmd)))
}
Exemplo n.º 2
0
func System(cmd string) int {
	ptr := C.CString(cmd)
	defer C.free(unsafe.Pointer(ptr))
	return int(C.system(ptr))
}