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/14 04:47 (8 years ago)] – ↷ Page moved from examples:objects:string_in_string to en:examples:objects:string_in_string iarwainen:examples:objects:string_in_string [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1
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: 2025/09/30 17:26 (12 days ago) (external edit)