home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,647 of 14,669   
   Jorgen Grahn to All   
   htonl()/ntohl() evaluation?   
   08 Oct 10 14:06:03   
   
   From: grahn+nntp@snipabacken.se   
      
   A brief question: are htonl(), ntohl() and friends allowed to evaluate   
   their argument more than once (i.e. if they're implemented naively as   
   macros?)   
      
   The man pages I've seen are silent on the subject so one would assume   
   they behave like normal functions -- but I've wasted a day debugging a   
   problem caused by my (in-house) implementation evaluating the argument   
   four times.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca