- 博客(4)
- 收藏
- 关注
原创 main 函数第三个参数
This is G o o g l es cache of http://elearning.embnet.org/file.php/29/ctutorial/Environme
2007-09-18 17:21:00 792
转载 execpl
我是刚开始学习unix 编程,我想大家肯定经常会碰到execlp函数我碰到的第一个例子就是execlp("ls","ls","-a",(char *)0)我不是没有看手册,手册中是这样写的:int execlp(const char *path, const char *arg,...);我当时觉得ls就是对应的char *path, 那么第二个ls就是参数了这样就不对了。我就到版上请教,有人告诉
2007-09-18 15:26:00 1060
转载 wait&exec
wait, waitpid - wait for process to change stateSynopsis#include sys/types.h>#include sys/wait.h>pid_t wait(int *status);pid_t waitpid(pid_t pid, int *status, int options);int waitid(idtype_t id
2007-09-18 13:23:00 649
转载 linux fork()函数学习
#include #include #include int main(){ pid_t pid; static int n = 0; printf("fork!/n"); /*printf("fork!")*/ switch (pid = fork()) { case -1: { /* 这里pid为-1,fork函数
2007-09-18 11:08:00 1450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人