Re: Pfile converter Big- to little endian

From: Naved A Surve (naved@bird.taponline.com)
Date: 02/13/96


In message <Pine.HPP.3.91.960213121523.25869A-100000@hp4.econ.cbs.dk> you said:

> * How do I convert the pfile to a binry format that is understandable by
>   Linux ?

The easiest way to do this would be to convert all the shorts and longs to
network byte order with htons(3) and htonl(3).  Then, on the linux machine,
convert back to host byte order with ntohs(3) and ntohl(3).

Check your man pages.


Naved



This archive was generated by hypermail 2b30 : 12/07/00 PST