摘要:
一、展示进程的环境变量列表 /* display_env.c 展示进程的环境变量列表. */ #include "tlpi_hdr.h" extern char **environ; /* Or define _GNU_SOURCE to get it from <unistd.h> */ int 阅读全文
摘要:
一、复制文件 copy.c来自《linux-Unix系统编程手册》,用来将一个源文件,复制到一个目标文件 执行命令:copy oldFile newFile copy.c #include <sys/stat.h> #include <fcntl.h> #include "tlpi_hdr.h" # 阅读全文