User Tools

Site Tools


en:examples:objects:string_in_string

This is an old revision of the document!


Get a string in a string

  orxSTRING alphabet = (orxCHAR*)"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  orxU32 size = 3, pos = 4; 
  orxCHAR buffer[64]; 
  orxString_NPrint(buffer, size + 1, "%s", alphabet + pos); 

buffer contains “EFG”.

en/examples/objects/string_in_string.1518598066.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) by 127.0.0.1