home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17764 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  806 b 

  1. Path: sparky!uunet!portal!cup.portal.com!Lee_Robert_Willis
  2. From: Lee_Robert_Willis@cup.portal.com
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: What is htonl() ?
  5. Message-ID: <72313@cup.portal.com>
  6. Date: Wed, 23 Dec 92 17:48:34 PST
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References:  <72250@cup.portal.com>
  10. Lines: 10
  11.  
  12. 'htonl()' is "host-to-network-long", a function designed to convert
  13. the host computer's format of a 'long' into the standard network
  14. long format.  This is a function designed to eliminate incompatibilities
  15. between big-endian and little-endian machines.
  16.  
  17. You can get away with ignoring this call if you're not porting to 
  18. a non-Amiga, because "network" format is the same as 680x0 format.
  19. On 680x0 machines, htonl() is a no-op.
  20.  
  21. Lee        Lee_Robert_Willis@cup.portal.com
  22.