stralloc_diffs(3diet)

stralloc_diffs3diet

Check if string is prefix of stralloc

Usage

#include <stralloc.h>

int stralloc_diffs(stralloc* a,const char* b);

Overview

stralloc_diffs returns negative, 0, or positive, depending on whether the \0-terminated string in a, without the terminating \0, is lexicographically smaller than, equal to, or greater than the string stored in a.

Return value

<0 if a<b, 0 if a==b, >0 if a>b.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

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