Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting floats to hex and back?

1 view
Skip to first unread message

simon goland

unread,
Jun 4, 1996, 3:00:00 AM6/4/96
to

The system is Solaris 2.4 and the language is C. There is a socket in my
program that is connected to some beast somewhere "out there" that expects
hex values representing 3 float numbers. These change dynamically
during the execution of a program, and flow back and forth.
Additionally, these go on the socket in a buffer of characters
(but still in hex representation).

How do I do this conversion (float to hex and back)?

Thanks.
--
Simon B-)>

Bob Stewart

unread,
Jun 6, 1996, 3:00:00 AM6/6/96
to

simon goland (s...@orby.mda.ca) wrote:

: The system is Solaris 2.4 and the language is C. There is a socket in my

Do some research on RPCs (Remote Procedure Calls). Then do a man
on "xdr". There are xdr functions to convert most "types" to a
standard, network transportable, format and back again. These functions
are usable between machines of different Endian types.

Later.
--
Bob Stewart ASE
(310) 335-7152 Air Transportation Division
b...@latcost1.alaao.ats.eds.com

I am definitely NOT speaking for EDS.

0 new messages