stralloc_chomp(3)

stralloc_chomp3

Remove trailing cr, lf or crlf

Usage

#include <libowfat/stralloc.h>

int stralloc_chomp(stralloc* sa);

Overview

stralloc_chomp removes trailing CRLF, CR or LF from sa and returns the number of removed characters (i.e. 0, 1 or 2).

Return value

number of removed characters (0, 1, or 2).

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.