stralloc_starts(3)

stralloc_starts3

Check if string is prefix of stralloc

Usage

#include <libowfat/stralloc.h>

int stralloc_starts(stralloc* sa,const char* in);

Overview

stralloc_starts returns 1 if the \0-terminated string in in, without the terminating \0, is a prefix of the string stored in sa. Otherwise it returns 0. sa must already be allocated.

Return value

1 if in is a prefix of sa, otherwise 0.

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.