linux的system函数 下面为system函数的一种实现:#include #include #include int system(const char *cmdstring){ pid_t pid; int status; if(cmdstring == NULL) //system接受命令为空时直接返回 APUE 2023-12-02 135 点赞 2 评论 204 浏览