摘要: 代码一步步实现C库,O(∩_∩)O~!但是标准库的实现是这样的[代码]标准库的实现是基于正确、有效、安全基础上写的,从这个代码上可见一斑啊!VS2008内的实现是:[代码] 阅读全文
posted @ 2011-01-02 19:37 hailong 阅读(430) 评论(0) 推荐(0)
摘要: The ctype header is used for testing and converting characters. A control character refersto a character that is not part of the normal printing set. In the ASCII character set, the controlcharacters are the characters from 0 (NUL) through 0x1F (US), and the character 0x7F (DEL). Printable charact 阅读全文
posted @ 2011-01-02 10:44 hailong 阅读(341) 评论(0) 推荐(0)
摘要: The assert header is used for debugging purposes.Macros: assert();External References: NDEBUG2.1.1 assertDeclaration: void assert(int expression);The assert macro allows diagnostic information to be written to the standard error file. If expression evaluates to 0 (false), then the expression, source 阅读全文
posted @ 2011-01-02 10:35 hailong 阅读(338) 评论(0) 推荐(0)
摘要: These preprocessing directives create conditional compiling parameters that control thecompiling of the source code. They must begin on a separate line.Syntax: #if constant_expression #else #endif or #if constant_expression #elif constant_expression #endifThe compiler only compiles the code after t 阅读全文
posted @ 2011-01-02 10:22 hailong 阅读(3122) 评论(0) 推荐(0)