stralloc_starts(3diet)

stralloc_starts3diet

Check if string is prefix of stralloc

Usage

#include <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

4 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.