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

📄 bchkspc3.c

📁 日本著名的的嵌入式实时操作系统T-Kernel的源码及用户手册。
💻 C
字号:
/* *---------------------------------------------------------------------- *    T-Kernel * *    Copyright (C) 2004 by Ken Sakamura. All rights reserved. *    T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * *    Version:   1.01.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* *	@(#)bchkspc3.c (libtk) * *	Address check  */#include <basic.h>#include <sys/util.h>#include <tk/syslib.h>/* * Check address space (B string) *	Checks to see that the memory area from str through to *	either '\0' or the max byte is valid. *	If max = 0, the number of bytes (max) is ignored. *	If the memory area is valid, the value returned is either *	the number of bytes or the max value (through to the max *	byte with max !=0 and no '\0'). *	If the memory area is not valid, the error code is returned.  */EXPORT ER CheckBStrSpaceR( UB *str, W max ){	return ChkSpaceBstrR(str, max);}EXPORT ER CheckBStrSpaceRW( UB *str, W max ){	return ChkSpaceBstrRW(str, max);}

⌨️ 快捷键说明

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