User Tools

Site Tools


en:examples:objects:string_in_string

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.txt · Last modified: 2018/02/14 08:47 (2 years ago) (external edit)