[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Q] Tracefile Conversion
On Wed, 17 Nov 1999 01:06:59 +0900, "Lee Jiwoong" wrote:
>Dear Seniors
>
>I'm trying to convert ~ns/tcl/ex/example-trace to normal ascii file.
>
>Below code is my first workout, and it seems not working. The result is so big.
>(first field is time and next field is size)
>
>What's wrong ?
>...
> printf("%10u %10u\n",htonl(time), htonl(size));
>...
The file is in network byte order... you're converting backwards (to
nl, not from nl).
-John Heidemann