logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

stralloc_diffs - check if string is prefix of stralloc

Description

       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.

Name

       stralloc_diffs - check if string is prefix of stralloc

Return Value

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

See Also

stralloc_diff(3), stralloc_starts(3), str_diff(3)

                                                                                               stralloc_diffs(3)

Syntax

#include<libowfat/stralloc.h>

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

See Also