User Tools

Site Tools


en:examples:strings:scanning_a_string_for_values

This is an old revision of the document!


Scanning a string for values

Operates in the same way as the standard scanf function.

orxSTRING resolutionString = "640x480";
 
int width = 0;
int height = 0;
 
orxString_Scan(resolutionString, "%dx%d", &width, &height);
en/examples/strings/scanning_a_string_for_values.1593949853.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)