how to convert a c string to a d string?
Posted
by Caspin
on Stack Overflow
See other posts from Stack Overflow
or by Caspin
Published on 2010-03-24T13:51:46Z
Indexed on
2010/03/24
13:53 UTC
Read the original article
Hit count: 226
d2
This is so simple I'm embarrassed to ask, but how do you convert a c string to a d string?
I've got two use cases.
string convert( const(char)* c_str );
string convert( const(char)* c_str, size_t length );
© Stack Overflow or respective owner