Changes between Version 1 and Version 2 of Tutorials/AdddingNewParameters

Show
Ignore:
Timestamp:
09/04/08 18:43:08 (5 years ago)
Author:
dcollins
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/AdddingNewParameters

    v1 v2  
    2727 ret += sscanf(line, "MyFloat      = %"FSYM, &MyFloat); 
    2828 ret += sscanf(line, "MyInt        = %"ISYM, &MyInteger); 
    29  
    3029}}} 
    3130 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.