How to convert a C string to a D string?

Viewed 149

If I have a C string, which is a pointer to a null terminated character array, how do I convert it to a regular D string?

The reason I'd like to know this is because I'm currently using an external C library which on error returns C strings.

1 Answers
Related