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 |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca