/* -*- Mode:C; Tab-width:4 -*- */
/*                                                                       */
/*                                                                       */
/*                      RESTRICTED RIGHTS LEGEND                         */
/*                                                                       */
/* Use, duplication, or disclosure by the Government is subject to       */
/* restrictions as set forth in subdivision (c)(1)(ii) of the Rights in  */
/* Technical Data and Computer Software clause at 252.227-7013.          */
/*                                                                       */
/*                    TEXAS INSTRUMENTS INCORPORATED.                    */
/*                            P.O. BOX 149149                            */
/*                         AUSTIN, TEXAS 78714-9149                      */
/*                              MS 2151                                  */
/*                                                                       */
/*  Copyright (C) 1986,1987,1988,1989,1990 Texas Instruments Incorporated.*/
/*  All rights reserved.                                                 */
/*                                                                       */

/********************************************************/
/* BCMP compares byte string B1 against byte string B2, */
/* returning zero if they are identical, non-zero       */
/* otherwise.  Both strings are assumed to be LEN bytes */
/* long                                                 */
/********************************************************/
bcmp(b1, b2, len)
char *b1, *b2 ;
int  len ;
{
       while (len-- > 0)
         if (*b1++ != *b2++) return(-1) ;

       return(0) ;
}
