What's wrong with writefln("%s", glGetString(GL_EXTENSIONS));

Anders F Björklund afb at algonet.se
Wed Mar 1 07:42:10 PST 2006


Cris wrote:

> What's wrong with writefln("%s", glGetString(GL_EXTENSIONS));
> 
> printf works but not writefln?
> 
> How can I get the returned string by GLubyte* glGetString(); into a D 
> char[]?

std.string.toString:

writefln("%s", toString(glGetString(GL_EXTENSIONS)));

--anders



More information about the Digitalmars-d-learn mailing list