stralloc_chop(3diet)

stralloc_chop3diet

Remove and return last char

Usage

#include <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

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.