User Tools

Site Tools


en:examples:objects:number_to_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:objects:number_to_string [2018/02/13 20:47 (7 years ago)] – ↷ Page moved from examples:objects:number_to_string to en:examples:objects:number_to_string iarwainen:examples:objects:number_to_string [2018/02/14 01:29 (7 years ago)] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 <code=cpp> <code=cpp>
-orxS16 score = 1234;+orxS32 score = 1234;
  
-orxCHAR formattedScore[6]; +orxCHAR formattedScore[6] = {}
-orxString_Print(formattedScore, "%d", score);+orxString_NPrint(formattedScore, sizeof(formattedScore) - 1, "%d", score);
  
 </code> </code>
en/examples/objects/number_to_string.1518583665.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)