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_starts - check if string is prefix of stralloc

Description

       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.

Name

       stralloc_starts - check if string is prefix of stralloc

Return Value

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

See Also

str_starts(3)

                                                                                              stralloc_starts(3)

Syntax

#include<libowfat/stralloc.h>

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

See Also