Debugging OpenGL: Converting GLDouble to char...

Dear OpenGL community,

I am trying to convert a GLDouble to a Char so I can printf it for debugging.
How do i do that?

I’ve searched the tinternet with zero success. I’m using a Mac i.e. in XCode.

printf( "%f
", gldWhatever );

?

Cheers. I had prinf("%s
", X); should have been %f.

You got gDEbugger already?
http://www.gremedy.com/
Very nifty tool to debug OpenGL.