From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4e569ed9237b0f35,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-01 21:32:04 PST Path: sparky!uunet!munnari.oz.au!uniwa!dmsperth!dmssyd.syd.dms.CSIRO.AU!chriss From: chriss@dmssyd.syd.dms.CSIRO.AU (Chris Skelsey) Newsgroups: comp.sys.dec Subject: Byte swapping between DECs & Suns Keywords: Byte, swapping Message-ID: <1992Mar2.020300.26694@syd.dms.CSIRO.AU> Date: 2 Mar 92 02:03:00 GMT Sender: news@syd.dms.CSIRO.AU Reply-To: chriss@dmssyd.syd.dms.CSIRO.AU (Chris Skelsey) Organization: CSIRO Division of Mathematics and Statistics, Australia Originator: chriss@pride.syd.dms.CSIRO.AU Hello, we have a network of Suns & DECs. Occasionally, we require to pass integer/floating point data between these two machines & we are trying to locate a public domain utility/function to swap bytes for various data types (since the byte ordering of Suns & DECs is different). The tool `swab' swaps 2 byte integers but we require a 4 byte integer swapping routine. We are also trying to locate a similar routine to swap floats (IEEE 754-1985 standard). Does anyone know of such a routine? Has anyone written one (C, Unix 4.1.1)? Thanks for your time, Chris. ______Chris Skelsey__________CSIRO Division of Mathematics & Statistics_______ | | | PO Box 218, Lindfield, NSW 2070, Australia. | | Phone : +61 2 413 7591 Fax : +61 2 416 9317 | | Telex : AA26296 Email : chriss@syd.dms.csiro.au | ------------------------------------------------------------------------------- -- akjdhajkshdjkasdhjkashd D