Changes between Version 1 and Version 2 of Tutorials/AdddingNewParameters
- Timestamp:
- 09/04/08 18:43:08 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/AdddingNewParameters
v1 v2 27 27 ret += sscanf(line, "MyFloat = %"FSYM, &MyFloat); 28 28 ret += sscanf(line, "MyInt = %"ISYM, &MyInteger); 29 30 29 }}} 31 30 and should be inserted somewhere in the loop where {{{line}}} is relevant. Note that {{{ISYM}}} and {{{FSYM}}} are the generalized integer and float I/O macro, which exist to take care of the dynamic hijacking of 'float'. [wiki:FloatIsDouble See this page for more information]. The {{{ret +=}}} controls whether the line has been read, or if Enzo should issue a warning about the line.
