Chinaunix首页 | 论坛 | 博客
  • 博客访问: 526930
  • 博文数量: 128
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 1345
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-22 21:43
文章分类

全部博文(128)

文章存档

2009年(30)

2008年(98)

我的朋友

分类: LINUX

2008-05-17 12:55:50

  1 #include
  2
  3 #ifndef __USE_ISOC99
  4 #define __USE_ISOC99
  5 #endif
  6 #include
  7
  8 int main(void)
  9 {   
 10     int foo_bar = 0;
 11     printf("Hello World!你好; 你的ID号:%d\n", foo_bar);
 12     printf("%Ld\n", LLONG_MAX);                                /* 注意需要使用%Ld, 参考man 3 printf */
 13     printf("%Ld\n", LLONG_MIN);
 14     signed long long int i = LLONG_MAX;
 15     printf("%Ld\n", i);
 16     return 0;
 17 }

teapot@teapot:~/src/c/ch01$ helloworld
Hello World!你好; 你的ID号:0
9223372036854775807
-9223372036854775808
9223372036854775807



 16 #ifdef __USE_POSIX2
 17     printf("posix2_lim.h\n");
 18 #endif
 19     
 20 #ifdef __USE_POSIX
 21     printf("posix_lim.h\n");
 22 #endif
 23     
 24 #ifdef __USE_XOPEN
 25     printf("xopen_lim.h\n");
 26 #endif

posix2_lim.h
posix_lim.h



阅读(861) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~