📄 tc_strcmp.c
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * tc_strcmp.c (libtcstr) * * TC character string library */#include <basic.h>#include <tstring.h>#define TSD_TSC_RTN_M1 (-1)EXPORT W tc_strcmp( const TC *s1, const TC *s2 ){ while ( *s1 == *s2 ) { if ( *s1 == TNULL ) { return 0; } s1++; s2++; } return ( *s1 > *s2 )? 1 : TSD_TSC_RTN_M1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -