advertisement

Article:
  Strings in Cocoa: Part I
Subject:   Why not correct the wrong example
Date:   2001-07-05 00:42:35
From:   darwinfo
Hi out there,


as it has been discussed already, the string-compare-example is wrong.
Just for curiosity, why hasn't it been corrected in the meantime?
The correct solution is quite simple:
if (strcmp(string1, string2) == 0)
{
....
}


Greetings from Hof/Germany
Peter


1 to 1 of 1
  1. Derrick Story photo Why not correct the wrong example
    2001-07-06 09:59:28  Derrick Story | O'Reilly AuthorO'Reilly Blogger [View]

    • Why not correct the wrong example
      2001-07-06 17:06:32  briandds [View]

1 to 1 of 1