134438Sbostic/* 2*61190Sbostic * Copyright (c) 1988, 1993 3*61190Sbostic * The Regents of the University of California. All rights reserved. 434438Sbostic * 542644Sbostic * %sccs.include.redist.c% 634824Sbostic * 734438Sbostic * This code is derived from software contributed to Berkeley by 834438Sbostic * Computer Consoles Inc. 934438Sbostic */ 1029701Ssam 1134438Sbostic#if defined(LIBC_SCCS) && !defined(lint) 12*61190Sbostic .asciz "@(#)strncpy.s 8.1 (Berkeley) 06/04/93" 1334438Sbostic#endif /* LIBC_SCCS and not lint */ 1434438Sbostic 1529701Ssam/* 1629701Ssam * Copy s2 to s1, truncating or null-padding to always copy n bytes 1729701Ssam * return s1 1829701Ssam */ 1929701Ssam#include "DEFS.h" 2029701Ssam 2129701SsamENTRY(strncpy, 0) 2229701Ssam movl 4(fp),r1 2329701Ssam movl 8(fp),r0 2429701Ssam movl 12(fp),r2 2529701Ssam movl r1,r3 2629701Ssam movs3 2729701Ssam movl r3,r0 2829701Ssam ret 29