---
name: "sanitize"
section: "3abz"
platform: "linux"
package: "libabz0-dev"
version: "0.5.1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/sanitize"
---

# 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 \<abz@blio.com\>
