User Tools

Site Tools


en:examples:objects:string_in_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:string_in_string [2018/02/13 20:47 (7 years ago)] – ↷ Page moved from examples:objects:string_in_string to en:examples:objects:string_in_string iarwainen:examples:objects:string_in_string [2023/03/28 21:12 (2 years ago)] (current) iarwain
Line 5: Line 5:
   orxU32 size = 3, pos = 4;    orxU32 size = 3, pos = 4; 
   orxCHAR buffer[64];    orxCHAR buffer[64]; 
-  orxString_NPrint(buffer, size + 1, "%s", alphabet + pos); +  orxString_NPrint(buffer, sizeof(buffer), "%.3s", alphabet + pos);
 </code> </code>
  
 //buffer// contains "EFG". //buffer// contains "EFG".
en/examples/objects/string_in_string.1518583666.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)