stralloc_chop(3diet)

NAME

stralloc_chop - remove and return last char

SYNTAX

#include <stralloc.h>

int stralloc_chop(stralloc* sa);

DESCRIPTION

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.

SEE ALSO

stralloc_chomp(3)
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout