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

buffer contains “EFG”.

en/examples/objects/string_in_string.1680058521.txt.gz · Last modified: 2023/03/28 19:55 (2 years ago) by sausage