Chinaunix首页 | 论坛 | 博客
  • 博客访问: 313337
  • 博文数量: 45
  • 博客积分: 2079
  • 博客等级: 上尉
  • 技术积分: 464
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-03 16:57
文章分类

全部博文(45)

文章存档

2015年(1)

2013年(1)

2012年(9)

2011年(2)

2010年(32)

分类:

2010-04-15 14:49:16

//file:line_function_file.c
#include
2 
3 void test(void)
4 {
5         printf("%s:%s:%d:debug info:hello !\n",__FILE__,__FUNCTION__,__LINE__);
6 }

8 int main(void)
9 {
10         test();
11         return 0;
12 } 

[root@study]# vi line_function_file.c
[root@study]#
[root@study]#
 gcc -o line_function_file line_function_file.c 
[root@study]#
[root@study]#
 ./line_function_file 
line_function_file.c:test:5:debug info:hello !

阅读(1110) | 评论(0) | 转发(0) |
0

上一篇:菜鸟杂谈2

下一篇:Linux抢占式内核

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