home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.games.mud.misc
- Path: sparky!uunet!paladin.american.edu!gatech!psuvax1!atlantis.psu.edu!handel!stine
- From: stine@handel.psu.edu (Jeffrey Stine)
- Subject: Re: Note to any fellow DikuMUD coders...
- Message-ID: <lek1Hah5mb@atlantis.psu.edu>
- Sender: news@atlantis.psu.edu (Usenet)
- Organization: Penn State University
- References: <3331@bsu-cs.bsu.edu> <1992Dec24.114107.18992@meiko.com> <9212241834.AA23599@TIS.COM>
- Date: Thu, 24 Dec 92 23:24:02 GMT
- Lines: 13
-
- In article <9212241834.AA23599@TIS.COM> mjr@TIS.COM writes:
- >> sprintf (currentConnectId, "%d.%d.%d.%d",
- >> foo.sa_data [2] & 0xFF, foo.sa_data [3] & 0xFF,
- >> foo.sa_data [4] & 0xFF, foo.sa_data [5] & 0xFF) ;
- >
- > What is this vomit? Use inet_ntoa().
- >
- >mjr.
-
- I've worked on machines where this call did not work and would produce a
- seg fault. There is nothing wrong with transforming the address this way
- provided it is done correctly.
-
-