Sscanf always returning 1

From: Templar Viper (templarviper@hotmail.com)
Date: 11/07/02


I'm working on a way to make a circlemud be able to use both standard worldfiles, 
us the 128bit standard. I'm currently stuck with the following: retval, at the fourth 
line always returns 1. Weird enough, it does get in the loop. How can this 
occur? Did I do something, or more suitable, what did I do wrong?


if ((sscanf(line, " %d %s %d ", t, flags, t + 2) == 3) && (bitwarning == TRUE)) {
    log("WARNING: Conventional worldfiles detected. Please read 128bit.readme.");
    exit(1);
  } else if ((retval = sscanf(line, " %d %s %d ", t, flags, t + 2) == 3) && (bitwarning == FALSE)) {

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT