欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2697|回復: 0
打印 上一主題 下一主題
收起左側

C高級指針接口回調函數

[復制鏈接]
跳轉到指定樓層
樓主
ID:56426 發表于 2013-10-29 16:23 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
// C的精華在指針 指針的精華在函數指針

int  insert_linklist_mount(FILE *p ,Ocean_Element **wordtemp, char**s,uint32_t mount);
回調函數實現接口設計
32行 回調函數  主要功能 向鏈表插入從文件p 中讀出的兩行數據  第二參數傳入傳出參數 初始化結構并傳出   第三參數char **s   堆上的空間用來接收文件內容  mount 用來指定想鏈表中插入Ocean_Element 結構(記錄)的個數


//dzm_project
  2 #ifndef _HABITS
  3 #define _HABITS
  4 #include <malloc.h>
  5 #include <stdio.h>
  6 #include <string.h>
  7 #include "simplified.h"
  8 #define  READ_LEN  150
  9 #define  CHIN_LEN  150
10 #define  WORK_LEN  150
11  typedef struct _OCEAN
12         {
13             char   *word;
14             char   *chin[CHIN_LEN];
15             uint32_t    count ;
16             struct _OCEAN* maintain;
17             struct _OCEAN* next;
18             struct _OCEAN* prev;
19         }Ocean_Element;
20
21  typedef void(*Tpfocus) (FILE *p, Ocean_Element** temp, char **s);
22
23  extern Ocean_Element *head;
24
25  int receive_vw_count(uint32_t *count);
26  void preserve_chin_array(Ocean_Element **node, char* tempword, char **arp);
27  void creat_virtual(Ocean_Element **list);
28 int read_file_line(FILE* p, Ocean_Element **wordtemp, char** s);
29 void judge_changeline(char ** para);
30 int  judge_char(char **par, char val);
31 int  egodic_list(void);
32 int  insert_linklist_mount(FILE *p ,Ocean_Element **wordtemp, char**s,uint32_t mo    unt);
33 char* cpy_str(char **dest, char **src);
34 char* judge_delete_ch(char**para, char ch) ;
35 char* user_search(char **s);
36 int   search_word(Ocean_Element *temp, const char * str);
37
38  void main_task(FILE *p, Ocean_Element **wordtemp, char**s);
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表