index.c

来自「speech signal process tools」· C语言 代码 · 共 35 行

C
35
字号
/* * strchr - find first occurrence of a character in a string *//* * This routine was donated to the public domain by Henry Spencer, * with the specific notice that it could be used by anyone, on any * machine for any purpose. **/#ifndef lint	static char *sccs_id = "@(#)index.c	1.4 4/6/93 PD";#endif#define	NULL	0#if defined(HP300) || defined(HP800) || defined(HP700) || defined(HP400) || defined(OS5)char *				/* found char, or NULL if none */index(s, charwanted)char *s;register char charwanted;{	register char *scan;	/*	 * The odd placement of the two tests is so NUL is findable.	 */	for (scan = s; *scan != charwanted;)	/* ++ moved down for opt. */		if (*scan++ == '\0')			return(NULL);	return(scan);}#endif

⌨️ 快捷键说明

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