This is bcmp.c in view mode; [Download] [Up]
/* @(#)pd/strlib/bcmp.c 1.2 24 Oct 1990 05:19:19 */ /* * bcmp(b1, b2, n) - compare block b1 to b2 for n bytes, return 0 if same */ bcmp(b1, b2, n) char *b1; char *b2; unsigned n; { while (n > 0) { if (*b1++ != *b2++) { return 1; } --n; } return 0; }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.