Skip to content
  • Mark Olesen's avatar
    e905f9b0
    tokenizing Scalar is more stringent · e905f9b0
    Mark Olesen authored
    - require a digit somewhere. This traps '.' or '.+E' type of sequences
      instead of returning them as 0
    
    - avoid buffer overruns on really long sequences
    
    - should we be considering strtod() as an alternative to atof() and checking
      the errno?
      The same might be true for using strtoul() or strtol() instead of atol()
    e905f9b0
    tokenizing Scalar is more stringent
    Mark Olesen authored
    - require a digit somewhere. This traps '.' or '.+E' type of sequences
      instead of returning them as 0
    
    - avoid buffer overruns on really long sequences
    
    - should we be considering strtod() as an alternative to atof() and checking
      the errno?
      The same might be true for using strtoul() or strtol() instead of atol()
Loading