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, sizeof(buffer), "%.3s", alphabet + pos);

buffer contains “EFG”.

en/examples/objects/string_in_string.txt · Last modified: 2023/03/28 21:12 (20 months ago) by iarwain