Tag

Trimming

Browsing

How to left-trim a C string

Reading a file or any output stream usually comes back with leading to trailing whitespace. The following code snippet removes any whitespace on the left of a c string.

You can find the complete source code here : https://gitlab.com/io.d-libraries/extend-c