1byte_chr(3)                Library Functions Manual                byte_chr(3)
2
3
4

NAME

6       byte_chr - search for a byte in a string
7

SYNTAX

9       #include <byte.h>
10
11       size_t byte_chr(const char *haystack,size_t len,char needle);
12

DESCRIPTION

14       byte_chr  returns  the smallest integer i between 0 and len-1 inclusive
15       such that one[i] equals needle.
16
17       If no such integer exists, byte_chr returns len.
18
19       byte_chr may read all bytes one[0], one[1], ...,  one[len-1],  even  if
20       not all the bytes are relevant to the answer.
21
22

SEE ALSO

24       byte_rchr(3)
25
26
27
28                                                                   byte_chr(3)
Impressum