Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2601118
  • 博文数量: 333
  • 博客积分: 4817
  • 博客等级: 上校
  • 技术积分: 4413
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-28 10:51
文章分类

全部博文(333)

文章存档

2017年(20)

2016年(57)

2015年(27)

2014年(20)

2013年(21)

2012年(164)

2011年(24)

发布时间:2014-02-21 10:23:45

格式化输入输出1.         fprintf(格式化输出数据至文件)相关函数  printf,fscanf,vfprintf表头文件  #include<stdio.h>定义函数  int fprintf(FILE * stream, const char * format,.......);函数说明  fprintf()会根据参数f.........【阅读全文】

阅读(3070) | 评论(0) | 转发(2)

发布时间:2014-02-21 09:56:39

本文主要介绍va_start和va_end的使用及原理。  在以前的一篇帖子Format MessageBox 详解中曾使用到va_start和va_end这两个宏,但对它们也只是泛泛的了解。  介绍这两个宏之前先看一下C中传递函数的参数时的用法和原理: 1.在C中,当我们无法列出传递函数的所有实参的类型和数目时,可以用省略号指定.........【阅读全文】

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

发布时间:2014-02-20 20:10:22

函数名: vfprintf功  能: 送格式化输出到一流中用  法: int vfprintf(FILE *stream, char *format, va_list param);简  介:stream为文件流,当该参数为stderr时,打印到屏幕输出;后两个参数用法与printf相同。程序例:#include <stdio.h.........【阅读全文】

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

发布时间:2014-02-20 19:57:06

宏定义中的##操作符和... and _ _VA_ARGS_ _1.Preprocessor Glue: The ## Operator预处理连接符:##操作符Like the # operator, the ## operator can be used in the replacement section of a function-like macro.Additionally, it can be used in the replacement section of an obje.........【阅读全文】

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

发布时间:2014-02-17 09:38:07

 pthread_cond_wait()/************pthread_cond_wait()的使用方法**********/    pthread_mutex_lock(&qlock);        pthread_cond_wait(&qready, &qlock);    pthread_mutex_unlock(&qlock);/*****.........【阅读全文】

阅读(8812) | 评论(0) | 转发(2)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册