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
en:examples:objects:string_in_string [2023/03/28 19:55 (2 years ago)] sausageen: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, sizeof(buffer) - 1, "%.3s", alphabet + pos);+  orxString_NPrint(buffer, sizeof(buffer), "%.3s", alphabet + pos);
 </code> </code>
  
 //buffer// contains "EFG". //buffer// contains "EFG".
en/examples/objects/string_in_string.1680058521.txt.gz · Last modified: 2023/03/28 19:55 (2 years ago) by sausage