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

📄 strncpy.s

📁 该文件是rt_linux
💻 S
字号:
/* * arch/alpha/lib/strncpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST.  If SRC does not cover all of COUNT, the balance is * zeroed. * * Or, rather, if the kernel cared about that weird ANSI quirk.  This * version has cropped that bit o' nastiness as well as assuming that * __stxncpy is in range of a branch. */	.set noat	.set noreorder	.text	.align 3	.globl strncpy	.ent strncpystrncpy:	.frame $30, 0, $26	.prologue 0	mov	$16, $0		# set return value now	beq	$18, 0f	mov	$26, $23	# set return address	br	__stxncpy	# do the work of the copy0:	ret	nop	nop	nop	.end strncpy

⌨️ 快捷键说明

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