How to call glGetString()?

BlitzMax Forums/BlitzMax OpenGL Programming/How to call glGetString()?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I know the function is returning a pointer to a string. How do I turn that into a string?

Local pointer : Byte Ptr

pointer=glGetString(GL_EXTENSIONS)
If pointer SUPPORT_GLEXTENSIONS$=What goes here?