00001 /* $Header$ */ 00002 /* 00003 * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands. 00004 * 00005 * This product is part of the Amsterdam Compiler Kit. 00006 * 00007 * Permission to use, sell, duplicate or disclose this software must be 00008 * obtained in writing. Requests for such permissions may be sent to 00009 * 00010 * Dr. Andrew S. Tanenbaum 00011 * Wiskundig Seminarium 00012 * Vrije Universiteit 00013 * Postbox 7161 00014 * 1007 MC Amsterdam 00015 * The Netherlands 00016 * 00017 */ 00018 00019 /* Author: J.W. Stevenson */ 00020 00021 int _bcp(sz,y,x) int sz; unsigned char *y,*x; { 00022 00023 while (--sz >= 0) { 00024 if (*x < *y) 00025 return(-1); 00026 if (*x++ > *y++) 00027 return(1); 00028 } 00029 return(0); 00030 }
1.5.8