sttrimiws.c
来自「程序涵盖了设计FIR滤器的各种方法」· C语言 代码 · 共 46 行
C
46 行
/*-------------- 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 + =
减小字号Ctrl + -
显示快捷键?