User Tools

Site Tools


en:examples:strings:scanning_a_string_for_values

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:examples:strings:scanning_a_string_for_values [2020/07/05 11:50 (6 weeks ago)] (current)
sausage created
Line 1: Line 1:
 +====== Scanning a string for values ======
 +
 +Operates in the same way as the standard [[https://​www.dummies.com/​programming/​c/​basics-of-the-scanf-function-in-c-programming|scanf]] function.
 +
 +<​code=c>​
 +orxSTRING resolutionString = "​640x480";​
 +
 +int width = 0;
 +int height = 0;
 +
 +orxString_Scan(resolutionString,​ "​%dx%d",​ &width, &​height);​
 +</​code>​
  
en/examples/strings/scanning_a_string_for_values.txt ยท Last modified: 2020/07/05 11:50 (6 weeks ago) by sausage