1.4 打印进程ID

file/hello.c

1 #include "apue.h"
2 int
3 main(void)
4 {
5     printf("hello world from process ID %d\n", getpid());
6     exit(0);
7 }

 

posted @ 2014-07-13 23:10  paullam  阅读(116)  评论(0)    收藏  举报