
C/C++
wps712
这个作者很懒,什么都没留下…
展开
-
linux c 读取并处理文件夹下的所有文件
定义传递参数使用的结构体:头文件#ifndef _PARAM_H_#define _PARAM_H_typedef struct str_1_param{ char *str; void *param;} STR_1_PARAM, *pSTR_1_PARAM;#endif遍历并处理每个文件(指针函数本地实pr现,具体负责处理文件): #incl原创 2014-05-04 19:36:09 · 958 阅读 · 0 评论 -
list_head
struct list_head { struct list_head *prev, *next;};/* Get an entry from the list * ptr - the address of this list_head element in "type" * type - the data type that contains "member" * mem原创 2014-05-23 22:08:45 · 479 阅读 · 0 评论 -
编程
1 C标准库 快排void qsort(void *base, size_t num, size_t width, int (__cdecl *compare )(const void *elem1, const void *elem2 ) );#include #include int compare(const void *arg1, const void *arg2)原创 2015-10-17 23:02:34 · 520 阅读 · 0 评论