libowfat/byte/byte_rchr.3

20 lines
575 B
Groff
Raw Normal View History

2001-02-02 17:54:47 +00:00
.TH byte_rchr 3
.SH NAME
byte_rchr \- search for a byte in a string
.SH SYNTAX
.B #include <libowfat/byte.h>
2001-02-02 17:54:47 +00:00
2006-11-07 17:56:05 +00:00
size_t \fBbyte_rchr\fP(const char *\fIhaystack\fR,size_t \fIlen\fR,char \fIneedle\fR);
2001-02-02 17:54:47 +00:00
.SH DESCRIPTION
\fIbyte_chr\fR returns the largest integer \fIi\fR between 0 and
\fIlen\fR-1 inclusive such that \fIone\fR[\fIi\fR] equals \fIneedle\fR.
If no such integer exists, byte_chr returns \fIlen\fR.
byte_rchr may read all bytes \fIone\fR[0], \fIone\fR[1], ...,
\fIone\fR[\fIlen\fR-1], even if not all the bytes are relevant to the
answer.
.SH "SEE ALSO"
byte_chr(3)