Welcome, Guest. Please login or register.

Author Topic: Probably very basic C question...  (Read 2110 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Slash

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 112
  • Country: gb
  • Gender: Male
    • Show all replies
    • http://www.the-snakepit.co.uk
Re: Probably very basic C question...
« on: May 25, 2004, 10:47:20 PM »

Hmm, I came across something like this when I was writing some code which used the AmiSSL package... just checking that code now...

Ahh, probably not related, well could be, but when you initialise AmiSSL you're actually checking it like:

  if(!InitAmiSSL(...))
    {
      /* worked */
    }
  else
    {
      /* didn't work */
    }

Which is reverse logic of what you would expect most of the time when checking for a successful result.

Maybe some libraries work like this, most do not though. Strange.