stralloc_chop
remove and return last char
- Provided by: libowfat-dev (Version: 0.30-3ubuntu1)
- Source: libowfat
- Report a bug
remove and return last char
#include <stralloc.h>
int stralloc_chop(stralloc* sa);
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.
chopped character, or -1 if string was empty.