skipspc.c

来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 30 行

C
30
字号
/***************************************************************************/
/*																									*/
/*	SKIPSPC.C																					*/
/*																									*/
/*		Copyright (c) 1991 - Microsoft Corp.											*/
/*		All rights reserved.																	*/
/*		Microsoft Confidential																*/
/*                                                                         */
/* Returns a ptr to first character after any white spaces or '=' chars.	*/
/* Checks for EOL and if encountered stops processing and returns a ptr 	*/
/* to the EOL character.																	*/
/*                                                                         */
/* char *SkipLeadingWhite( char *szPtr )												*/
/* 																								*/
/* ARGUMENTS:	Str		- Ptr to a string												*/
/* RETURNS: 	char *	- Ptr to first non-white space character or EOL 	*/
/* 																								*/
/* johnhe - 12/01/89																			*/
/***************************************************************************/

#include 	<strlib.h>

char *SkipLeadingWhite( char *szPtr )
{
	while ( IsWhite( *szPtr ) && *szPtr != EOL )
		szPtr++;

	return( szPtr );
}

⌨️ 快捷键说明

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