Chinaunix首页 | 论坛 | 博客
  • 博客访问: 539873
  • 博文数量: 156
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1183
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-22 11:42
文章分类

全部博文(156)

文章存档

2015年(67)

2014年(89)

分类: LINUX

2014-12-04 10:46:42


  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <sys/types.h>
  4. #include <stdlib.h>

  5. int main()
  6. {
  7.     printf("%d\n", getpid());
  8.     printf("%d\n", getppid());

  9.     while(1);
  10.     exit(0);
  11. }

      输出结果:
                 

阅读(644) | 评论(0) | 转发(0) |
1

上一篇:getpid

下一篇:系统strlen函数

给主人留下些什么吧!~~