130423Smckusick /* 230423Smckusick * Copyright (c) 1987 Regents of the University of California. 335110Sbostic * All rights reserved. 435110Sbostic * 5*42635Sbostic * %sccs.include.redist.c% 630423Smckusick */ 730423Smckusick 830423Smckusick #if defined(LIBC_SCCS) && !defined(lint) 9*42635Sbostic static char sccsid[] = "@(#)bcmp.c 5.4 (Berkeley) 06/01/90"; 1035110Sbostic #endif /* LIBC_SCCS and not lint */ 1130423Smckusick 1242144Sbostic #include <string.h> 1342144Sbostic 1430423Smckusick /* 1530423Smckusick * bcmp -- vax cmpc3 instruction 1630423Smckusick */ 1730423Smckusick bcmp(b1, b2, length) 1830423Smckusick register char *b1, *b2; 1942144Sbostic register size_t length; 2030423Smckusick { 2130423Smckusick 2230423Smckusick if (length == 0) 2342144Sbostic return(0); 2430423Smckusick do 2530423Smckusick if (*b1++ != *b2++) 2630423Smckusick break; 2730423Smckusick while (--length); 2830423Smckusick return(length); 2930423Smckusick } 30