Use strlen, the sizeof operator returns 4 (it's a pointer).
Use strlen, the sizeof operator returns 4 (it's a pointer).
it says to use sizeof() in the opengl game programming book, but I'll try strlen
sizeof only works if it's a char[], not with a char*
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling