sanitize(3abz)

sanitize3abz

Remove leading and trailing whitespace, comments from a string.

Usage

#include <abz/sanitize.h>

void sanitize(char *str);

Libraries

Abz Library (-labz), Debug Library (-ldebug)

Overview

The sanitize() function is used to remove whitespace and comments from lines of text. Comments are the usual bash-style (#) comments. Anything between double-quotes (") are treated as part of a string.

Notes

None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/

Author

Written by Abraham vd Merwe <[email protected]>

From libabz0-dev 0.5.1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.