⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strlen.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
#ifndef lintstatic char *sccsid = "@(#)strlen.c	4.1	(ULTRIX)	7/3/90";#endif not lint/* ------------------------------------------------------------------ *//* | Copyright Unpublished, MIPS Computer Systems, Inc.  All Rights | *//* | Reserved.  This software contains proprietary and confidential | *//* | information of MIPS and its suppliers.  Use, disclosure or     | *//* | reproduction is prohibited without the prior express written   | *//* | consent of MIPS.                                               | *//* ------------------------------------------------------------------ *//* $Header: strlen.c,v 1.1 87/02/16 11:17:42 dce Exp $ *//* * Returns the number of non-NULL bytes in string argument. * Original code: *	strlen(s) *	register char *s; *	{ *		register n; *		n = 0; *		while (*s++) *			n++; *		return(n); *	} *//* Code optimized for mips.  4 cycles/byte. */strlen(s)register char *s;{	register char *p = s + 1;	register unsigned c;	/* c exists only because UOPT wastes a				   register (but no cycles) if the				   while is written as *s++ != '\0' */	do {		c = *s++;	} while (c != '\0');	return s - p;}

⌨️ 快捷键说明

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