Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualKhatharr

Posted 29 November 2012 - 02:55 PM

Oh, please ignore my comment. I thought we were talking about strcat(). I need some rest. ;)


lol, I know that feeling. Posted Image

As a side note:

[source lang="cpp"]_itoa_s(fps, tempS, 10);strcpy_s(fpsS, "FPS: ");strcat_s(fpsS, tempS);[/source]

Could be:
[source lang="cpp"]sprintf_s(fpsS, "FPS: %i", tempS);[/source]
If you want to use C style string handling.

#1Khatharr

Posted 29 November 2012 - 02:54 PM

Oh, please ignore my comment. I thought we were talking about strcat(). I need some rest. ;)


lol, I know that feeling. Posted Image

As a side note:

[source lang="cpp"]_itoa_s(fps, tempS, 10);strcpy_s(fpsS, "FPS: ");strcat_s(fpsS, tempS);[/source]

Could be:
[source lang="cpp"]sprintf_s(fpsS, "FPS: %i", 10);//or just strcpy_s(fpsS, "FPS: 10");[/source]
If you want to use C style string handling.

PARTNERS