
C语言
文章平均质量分 67
aozhi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
函数指针的应用
下面是函数指针的一个小应用.Unit1.h#ifndef Unit1H #define Unit1H typedef struct DOSMenu { int MenuID; char *MenuLabel; void (*OnSelect)(); } DOSMenu; void ShowMenu(DOSM原创 2008-06-23 23:19:00 · 580 阅读 · 0 评论 -
cc的编译选项(学习笔记)
-mt编译一个多线程的程序,或连接一个多线程的库到程序的时候,必须指定。 -D宏定义。例:用-DDEBUG参数,则代码中DEBUG宏被定义。#ifdef DEBUG和#endif间的代码将被编译。 Purposesun ccgnu ccCompile in 64bit mode-xarch= (-xarch=generic64原创 2009-09-24 11:39:00 · 1223 阅读 · 0 评论 -
dirent
<br />#include <stdio.h> #include <sys/types.h> #include <dirent.h> static char types[13][20]={ "unknown", "named pipe (FIFO)", "character device", "", "directory", "", "block device", "", "regular file", "", "symbolic link", "", "Unix doma原创 2011-05-27 14:35:00 · 673 阅读 · 0 评论 -
bzImage文件转gz文件
#include #include int main(int argc, char **argv) { char c; char buf[4096]; int len; char tk[3]={0x1f,0x8b,0x08}; FILE *fip=NULL; FILE *fop=NULL; switch(argc) { case 1:原创 2012-08-15 11:01:48 · 619 阅读 · 0 评论