stralloc_chop(3)

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.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.