C标准库
eagleatustb
学习永远没有终点
展开
-
C标准库源码解读(VC9.0版本)——ctype.h
ANSI C文档(C89 http://flash-gordon.me.uk/ansi.c.txt)如是说: 4.3 CHARACTER HANDLING The header declares several functions useful for testingand mapping characters./89/ In all cases the argument is an原创 2013-02-04 16:29:27 · 5556 阅读 · 1 评论 -
C标准库源码解读(VC9.0版本)——stdarg.h
stdarg.h中定义处理可变参数函数的方法。我们常用的printf,scanf等函数,都是以此做处理的,平时写代码的时候很少使用到,但是学习多一种方法,明白更多使用方法。其实变参数的实现是通过编译时参数压入栈的位置去查找的。而正确处理需要给出对应的结构类型,因为需要根据结构大小取数据值。明白了这个原理,理解并写处理不定参数的函数并不难。 Variable arguments handling原创 2013-02-17 15:39:12 · 1207 阅读 · 0 评论