经典远程控制代码

源代码在线查看: command.c

软件大小: 148 K
上传用户: lz0324
关键词: 远程控制 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "Command.h"
				#include "client.h"
				#include 
				
				struct CommandList *Add_Command(struct CommandList *pNode,struct CommandDS Command)
				{
					if (pNode->pNext = (struct CommandList *)malloc(sizeof(struct CommandList)))
					{
						pNode = pNode->pNext;
						strcpy(pNode->Command.szElement,Command.szElement);
						pNode->pNext = NULL;
						return pNode;
					}
					return NULL;
				}
				
				void Clear_Command(struct CommandList *pStart)
				{
					struct	CommandList	*pPrev;
					struct	CommandList	*pNode;
					while (pNode = pStart->pNext)
					{
						pPrev = pStart;
						pPrev->pNext = pNode->pNext;
						free(pNode);
					}
				}			

相关资源