示例#1
0
文件: system.go 项目: mattn/go-system
func System(cmd string) int {
	return int(C.system(C.CString(cmd)))
}
示例#2
0
func System(cmd string) int {
	ptr := C.CString(cmd)
	defer C.free(unsafe.Pointer(ptr))
	return int(C.system(ptr))
}