⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rt_service_loader.c.svn-base

📁 RT-Thread是发展中的下一代微内核嵌入式实时操作系统
💻 SVN-BASE
字号:
/* * File      : rt_service_loader.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.fayfayspace.org/license/LICENSE. * * Change Logs: * Date           Author       Notes * 2006-04-21     Bernard      The first version *//*! * \addtogroup xgServiceLoader *//*@{*//*! * @brief loader service module * * this function will return the service module with specified name * * @param loader the service loader self * @param name the specified name * * @return the found service module */struct rt_service_item* rt_service_loader(struct rt_service_loader* location, const char* name){	register rt_base_t temp;	struct rt_service_item* item;		for (temp = 0; temp < loader->number; temp ++)	{		item = (struct rt_service_item*)((unsigned char*)loader + loader->position + 			temp * sizeof(struct rt_service_item));		if (strcmp(item->name, name) == 0)		{			/* found it */			return item;		}	}		return RT_NULL;}/*@}*/

⌨️ 快捷键说明

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