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