/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/

static char sccsid_cmpP_bool[] = "@(#)cmpP_bool.c	1.5 10/19/92 13:52:53  LLNL ";

/*
	Embedded Language for Remote Operations Services
	ELROS

	AUTHOR:		James A. Guse
			Network Systems Division

	DATE WRITTEN:	11/9/90

	ROUTINES:	__ROr_cmpP_Boolean

PURPOSE:
	Compares two boolean values, given pointers to them and Maxlengths.


IN:
	value1 - lhs value
	value2 - rhs value
	maxlength - maximum length.
	maxlength2 - maximum length aux.

OUT:
	RETURNs a boolean comparison flag


CALLED ROUTINES:
	

	
MODIFICATION HISTORY:


*/

#include <elros/instance.h>

 
int __ROr_cmpP_Boolean(value1, value2, maxlength, maxlength2)

   unsigned char *	value1;
   unsigned char *	value2;
   unsigned long *	maxlength;
   unsigned long *	maxlength2;

{
   int i,v1=0,v2=0;

   for (i=0; i < *maxlength; i++,value1++)
      if (*value1)
         v1=1;
   for (i=0; i < *maxlength; i++,value2++)
      if (*value2)
         v2=1;

   return(v1==v2);
}


