/*
   Strncmp
   
   See COPYLEFT.JRD
*/

int strncmp (str1, str2, nbytes)
char * str1;
char * str2;
int nbytes;
{
  while (--nbytes >= 0 && (*str1 == *str2++))
	if (!*str1++)
		return(0);
  return(nbytes < 0 ? 0 : *str1 - *--str2);
}
