xref: /original-bsd/lib/libc/tahoe/string/strncpy.s (revision a4d3ae46)
1#ifdef LIBC_SCCS
2	.asciz	"@(#)strncpy.s	1.1 (Berkeley/CCI) 08/01/86"
3#endif LIBC_SCCS
4
5/*
6 * Copy s2 to s1, truncating or null-padding to always copy n bytes
7 * return s1
8 */
9#include "DEFS.h"
10
11ENTRY(strncpy, 0)
12	movl	4(fp),r1
13	movl	8(fp),r0
14	movl	12(fp),r2
15	movl	r1,r3
16	movs3
17	movl	r3,r0
18	ret
19