teclinklist.h

来自「This is a simple demo of Link List. You 」· C头文件 代码 · 共 54 行

H
54
字号
// tecLinkList.h




#ifndef __TEC_LINK_LIST__
#define __TEC_LINK_LIST__


typedef struct _tec_data_info_ *LPTEC_DATA_INFO;
typedef struct _tec_data_info_ {
	int nVal;
	LPTEC_DATA_INFO pPrev;
	LPTEC_DATA_INFO pNext;
} TEC_DATA_INFO;

typedef struct _tec_linklist_ {
	int nNum;
	LPTEC_DATA_INFO pData;
} TEC_LINKLIST;


#ifdef __cplusplus
extern "C" {
#endif



BOOL __stdcall tecListAdd(
	TEC_LINKLIST *ptecList,
	TEC_DATA_INFO *pData, 
	int nInsBef,				/*1: First. 0: Last*/
	DWORD *pdwErrCode
	);

BOOL __stdcall tecListDel(
	TEC_LINKLIST *ptecList,
	TEC_DATA_INFO *pData,
	int *pnPos,
	DWORD *pdwErrCode
	);

BOOL __stdcall tecListFind(
	TEC_LINKLIST strutecList,
	TEC_DATA_INFO *pData,
	int *pnPos,
	DWORD *pdwErrCode
	);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?