📄 sttrimiws.c
字号:
/*-------------- Telecommunications & Signal Processing Lab --------------- McGill UniversityRoutine: char *STtrimIws (const char Si[])Purpose: Trim leading white-spaceDescription: This routine returns a pointer to the first character in a string that is not white-space (as defined by isspace). If the input string consists entirely of white-space, this routine returns a pointer to the terminating null character.Parameters: <- char *STrimIws Pointer to the first non-white-space character -> const char Si[] Input character stringAuthor / revision: P. Kabal Copyright (C) 1999 $Revision: 1.6 $ $Date: 1999/06/04 22:34:58 $-------------------------------------------------------------------------*/static char rcsid[] = "$Id: STtrimIws.c 1.6 1999/06/04 FilterDesign-v4r0a $";#include <ctype.h>#include <libtsp/nucleus.h>char *STtrimIws (const char Si[]){ /* Find the first non-white-space character */ for (; isspace (*Si); ++Si) ; return ((char *) Si);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -