KStrList.cpp
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KStrList.cpp
- // Date: 2000.08.08
- // Code: WangWei(Daphnis)
- // Desc: Simple double linked node class
- //---------------------------------------------------------------------------
- #include "KWin32.h"
- #include "KDebug.h"
- #include "KStrBase.h"
- #include "KStrList.h"
- //---------------------------------------------------------------------------
- // 函数: Find
- // 功能: 查找
- // 参数: void
- // 返回: void
- //---------------------------------------------------------------------------
- KStrNode* KStrList::Find(char* str)
- {
- KStrNode* pNode = (KStrNode*) GetHead();
- while (pNode)
- {
- if (g_StrCmp(str, pNode->GetName()))
- return pNode;
- pNode = (KStrNode*) pNode->GetNext();
- }
- return NULL;
- }
- //--------------------------------------------------------------------------------