home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12335 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!Sirius.dfn.de!chx400!josef!sinkwitz
  3. From: sinkwitz@ifi.unizh.ch (Rainer Sinkwitz)
  4. Subject: Re: Binary File: SGI <-> IBM
  5. Message-ID: <1992Aug13.140617.2087@ifi.unizh.ch>
  6. Sender: sinkwitz@ifi.unizh.ch (Rainer Sinkwitz)
  7. Organization: University of Zurich, Department of Computer Science
  8. References:  <1157@deere.com>
  9. Date: Thu, 13 Aug 92 14:06:17 GMT
  10. Lines: 32
  11.  
  12.  
  13. In article <1157@deere.com>, jrh@de.deere.com (John R. Howell) writes:
  14. > I have a binary file created with C fwrites and read with C freads.
  15. > If I create this on an SGI (IRIX) and read it with an IBM RS6000, I seem to
  16. > read everything ok, but my floating point numbers don't make sense. If
  17. > I go the other way (IBM -> SGI) a similar thing happens.
  18. > Apparently the integers are read correctly ...
  19. ...
  20. The XDR package is a portable way to do this.
  21.  
  22. % man xdr
  23.  
  24. XDR(3R)                        Silicon Graphics                        XDR(3R)
  25.  
  26. NAME
  27.      xdr - External Data Representation (XDR) library routines
  28.  
  29. SYNOPSIS AND DESCRIPTION
  30.      These routines allow C programmers to describe arbitrary data structures
  31.      in a machine-independent fashion.  Data for remote procedure calls are
  32.      transmitted using these routines.
  33.  
  34.         #include <rpc/rpc.h>
  35.  
  36. -- 
  37. oooooo    oooo  Rainer Sinkwitz, Multimedia Lab         sinkwitz@ifi.unizh.ch
  38.  $   $   $   "  University of Zurich, Switzerland        VOICE +41-1-257-4346
  39.  $"$$    """"$  Inst.f.Informatik, Winterthurerstr. 190   FAX +41-1-363-00-35
  40. o$o "$o  $ooo"  CH-8057-Z\"urich
  41.