摘要:
一、展示进程的环境变量列表 /* display_env.c 展示进程的环境变量列表. */ #include "tlpi_hdr.h" extern char **environ; /* Or define _GNU_SOURCE to get it from <unistd.h> */ int 阅读全文
posted @ 2022-04-19 14:51
Mars.wang
阅读(120)
评论(0)
推荐(0)
摘要:
一、复制文件 copy.c来自《linux-Unix系统编程手册》,用来将一个源文件,复制到一个目标文件 执行命令:copy oldFile newFile copy.c #include <sys/stat.h> #include <fcntl.h> #include "tlpi_hdr.h" # 阅读全文
posted @ 2022-04-19 11:22
Mars.wang
阅读(183)
评论(0)
推荐(0)
浙公网安备 33010602011771号