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.

20 lines
571 B

  1. .TH byte_rchr 3
  2. .SH NAME
  3. byte_rchr \- search for a byte in a string
  5. .B #include <byte.h>
  6. long \fBbyte_rchr\fP(const char *\fIhaystack\fR,unsigned long \fIlen\fR,char \fIneedle\fR);
  8. \fIbyte_chr\fR returns the largest integer \fIi\fR between 0 and
  9. \fIlen\fR-1 inclusive such that \fIone\fR[\fIi\fR] equals \fIneedle\fR.
  10. If no such integer exists, byte_chr returns \fIlen\fR.
  11. byte_rchr may read all bytes \fIone\fR[0], \fIone\fR[1], ...,
  12. \fIone\fR[\fIlen\fR-1], even if not all the bytes are relevant to the
  13. answer.
  14. .SH "SEE ALSO"
  15. byte_chr(3)