stralloc_chomp(3diet)

stralloc_chomp3diet

Remove trailing cr, lf or crlf

Usage

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

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.