byte_chr(3)

byte_chr3

Search for a byte in a string

Usage

#include <libowfat/byte.h>

size_t byte_chr(const char *haystack,size_t len,char needle);

Overview

byte_chr returns the smallest integer i between 0 and len-1 inclusive such that one[i] equals needle.

If no such integer exists, byte_chr returns len.

byte_chr may read all bytes one[0], one[1], ..., one[len-1], even if not all the bytes are relevant to the answer.

Releases

8 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0
  2. 7–11
  3. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.