stralloc_diffs(3)

stralloc_diffs3

Check if string is prefix of stralloc

Usage

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

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

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