摘要: 用过C的都知道#include,写hello world之前不都得#include <stdio.h>么。不过#include这种东西,会有很多花样,有些是常用的正规用法,有些就是很evil的用法了。1,条件包含例如,由于vc没有提供C99的stdint.h,所以跨平台的代码可能会有这样的语句:#ifdef _MSC_VER typedef __int64 int64_t#else #include <stdint.h>#endif这是常见的正规做法。2,包含非头文件譬如有些.c文件里面会写,#include "inc/aes_impl.c",这种做 阅读全文
posted @ 2011-06-09 13:36 qsort 阅读(882) 评论(0) 推荐(0)