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_chop - remove and return last char

Description

       stralloc_chop  removes  the  last  char  in  the stralloc (if it is empty, stralloc_chop does nothing and
       returns -1).  This character is cast to unsigned char and returned.

Name

       stralloc_chop - remove and return last char

Return Value

       chopped character, or -1 if string was empty.

See Also

stralloc_chomp(3)

                                                                                                stralloc_chop(3)

Syntax

#include<libowfat/stralloc.h>

       int stralloc_chop(stralloc* sa);

See Also