stralloc_chop3
Remove and return last char
Usage
#include <libowfat/stralloc.h>
int stralloc_chop(stralloc* sa);
Overview
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.
Return value
chopped character, or -1 if string was empty.
Releases
7 releases since Debian 7 (Wheezy); the text changed 1 time.