bchkspc2.c
来自「日本很有名的一个嵌入式RTOS」· C语言 代码 · 共 43 行
C
43 行
/* *---------------------------------------------------------------------- * T-Kernel * * Copyright (C) 2004-2006 by Ken Sakamura. All rights reserved. * T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * * Version: 1.02.01 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/1/10. * *---------------------------------------------------------------------- *//* * @(#)bchkspc2.c (libtk) * * Address check */#include <basic.h>#include <sys/util.h>#include <tk/syslib.h>/* * Address space check (TC string) * Checks to see that the memory area from str through to * either TNULL or the max character is valid. * If max = 0, the number of characters (max) is ignored. * If the memory area is valid, the value returned is either * the number of characters or the max value (through to the * max character with max !=0 character and no TNULL). * If the memory area is not valid, the error code is returned.*/EXPORT ER CheckStrSpaceR( TC *str, W max ){ return ChkSpaceTstrR(str, max);}EXPORT ER CheckStrSpaceRW( TC *str, W max ){ return ChkSpaceTstrRW(str, max);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?