string to char conv

zeus kryptographos at gmx.com
Tue Aug 14 00:42:02 UTC 2018


On Tuesday, 14 August 2018 at 00:24:53 UTC, Jonathan M Davis 
wrote:
> On Monday, August 13, 2018 6:06:22 PM MDT zeus via 
> Digitalmars-d-learn wrote:
>> [...]
>
> Why are you casting the string to a char*? That's just going to 
> make writeln print out the pointer value. If you want to print 
> out the value of the string, then just pass the string to 
> writeln.
>
> - Jonathan M Davis

Needed char* for while (isspace(*testi)) --testi; etc


More information about the Digitalmars-d-learn mailing list