1 #include "stralloc.h"
2 
stralloc_chop(stralloc * sa)3 int stralloc_chop(stralloc* sa) {
4   if (sa->len==0) return -1;
5   --sa->len;
6   return (unsigned char)(sa->s[sa->len]);
7 }
8