2021年7月17日
摘要: 1、头文件 #include <getopt.h> #include <stdlib.h> #include <unistd.h> 2、函数原型 int getopt(int argc,char * const argv[ ],const char * optstring); 返回值为int类型,其 阅读全文
posted @ 2021-07-17 14:18 裸睡的猪 阅读(2146) 评论(0) 推荐(0) 编辑
摘要: 1、函数定义 #include <stdio.h> FILE * popen(const char *command , const char *type ); int pclose(FILE *stream); 2、函数说明 popen()函数通过创建一个管道,调用fork()产生一个子进程,执行 阅读全文
posted @ 2021-07-17 10:32 裸睡的猪 阅读(4783) 评论(0) 推荐(0) 编辑