C to D struct including LPVOID,LPCSTR

Steve Horne stephenwantshornenospam100 at aol.com
Sun Sep 10 13:21:24 PDT 2006


On Sun, 10 Sep 2006 09:35:39 -0400, nobody <nobody at mailinator.com>
wrote:

>Just wanted to point out that D strings are structs with a pointer and a length. 
>C strings are just a pointer. So the size of a D string is twice that of a C 
>string which would change the size of the struct.

OK - thanks. I assumed the length went with the string itself, but
thinking about it, that would break those printf examples I saw
somewhere.

-- 
Remove 'wants' and 'nospam' from e-mail.



More information about the Digitalmars-d-learn mailing list