On 6/21/11, Walter Bright <[email protected]> wrote:
> Fix:
>
>         char[100] buffer = 0;

I didn't know about this syntax! I've been under a rock apparently.

> Fix:
>       char[100] buffer;
>       APIWriteToBuffer(buffer.ptr);
>          auto p = buffer[0 .. strlen(buffer.ptr)];
>       myDStringFunction(p);
>

Yeah I was going to suggest that. My only problem was I didn't know
where to look for an strlen equivalent for UTF, but I found it in
std.utf and it's called stride().

I'll fix these examples soon. I'll give a thought or two about that
blogging idea as well, thanks.

Reply via email to