Got tired of not having trim() in C so I wrote it
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
tm.sh
trim.c
trim.h

README.md

trim

Got tired of not having trim(), ltrim() and rtrim() in C so I wrote them.

// Remove all characters in *c from left and right of *dest char *trim(char *dest, char *c)

// Remove all characters in *c from left of *dest char *ltrim(char *dest, char *c)

// Remove all characters in *c from right of *dest char *rtrim(char *dest, char *c)