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