Reference

sanitize(3abz)

remove leading and trailing whitespace, comments from a string.

NAME

sanitize - remove leading and trailing whitespace, comments from a string.

LIBRARIES

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

SYNOPSIS

#include <abz/sanitize.h>

void sanitize(char *str);

DESCRIPTION

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/

SEE ALSO

tokens_parse(3), tokens_destroy(3)

AUTHOR

Written by Abraham vd Merwe <[email protected]>