APUE: 1-4_getpid.c

来源:互联网 发布:linux导出mysql数据库 编辑:程序博客网 时间:2024/06/02 20:42

/* 打印进程ID */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int
main(int argc, char *argv[])
{
    printf("hello world from process ID %d/n", getpid());
    exit(0);

}

原创粉丝点击