c学习实例
Iphone4
linux & web & filesystem & python
展开
-
assert、atexit、bsearch、tolower、offsetof及va_list
1.屏蔽assert函数 #define NDEBUG ("no debug") //shield the function of assert ... #include #include void open_record(char *record_name) { assert(record_name!=NULL); /* Rest o原创 2013-09-23 17:20:40 · 818 阅读 · 0 评论 -
python比c,有多慢,小测试
#include #include int main (){ int st = time(NULL); long a = 100.33; long b = 23.33; long c; int ct = 1000000000; for (; ct > 0; ct --) c = a/++b; printf("\n total time: %d\n", time(NULL)-st);} xxx原创 2013-11-28 16:03:59 · 3066 阅读 · 1 评论 -
fuse的作用
文件系统的作用就是管理数据,存储Meta data和Data, 通过meta data索引data, 写一个文件系统,当然自己决定文件存在内存还是磁盘,存在本地还是远程,以及怎么存,fuse的作用就是让这个事情干起来容易些吧。原创 2014-05-29 12:27:22 · 2220 阅读 · 0 评论