lets say i have an int function that ,, big suprise outputs an integer, then i have a text output in opengl that can only output char * , i found out i can convert the int to a char by using the itoa(); function but can someone please tell me if i'm doing this right

i get the integer from the function

int fpsint(CalculateFrameRate());

then i declare the char i want to store it in!

char *fps;

then i run itoa

itoa(fpsint,fps, 10);


should this not output fpsint to the char fps?