Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
584 B

  1. .TH byte_diff 3
  2. .SH NAME
  3. byte_diff \- compare two strings
  5. .B #include <byte.h>
  6. int \fBbyte_diff\fP(const char *\fIone\fR,unsigned long \fIlen\fR,const char *\fItwo\fR);
  8. \fIbyte_diff\fR returns negative, 0, or positive, depending on whether
  9. the string \fIone\fR[0], \fIone\fR[1], ..., \fIone\fR[\fIlen\fR-1] is
  10. lexicographically smaller than, equal to, or greater than the string
  11. \fIone\fR[0], \fIone\fR[1], ..., \fIone\fR[\fIlen\fR-1].
  12. When the strings are different, byte_diff does not read bytes past the
  13. first difference.
  14. .SH "SEE ALSO"
  15. byte_equal(3)