Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

gdl (cvs snapshot 19 Sep 2004) strcmp broken?

Help
2005-09-19
2013-06-03
  • Jim Garlick
    Jim Garlick
    2005-09-19

    Hi,

    strcmp() seems to be returning the wrong values (should be 1 on match, 0 on failure).  Best I can tell, the version in todays CVS snapshot always returns 1 except when /fold_case is used, then it always returns 0?

    GDL> print,strcmp("foo","bar")
       1
    GDL> print,strcmp("foo","foo")
       1
    GDL> print,strcmp("foo","FOO",/fold_case)
       0
    GDL> print,strcmp("foo","bar",/fold_case)
       0

    Jim

    p.s. thanks for the quick turnaround on the other gotchas I reported!

     
    • Marc Schellens
      Marc Schellens
      2005-09-21

      Should work now again.
      marc

       
    • Jim Garlick
      Jim Garlick
      2005-09-22

      All better.  Thanks!
      Jim