On Mon, Feb 11, 2008 at 11:45:10AM -0500, Douglas A. Tutty wrote:
> On Mon, Feb 11, 2008 at 06:05:08PM +0200, Micha wrote:
> > I have a stream of unsigned long numbers saved from visual studio (2005) 
> > that
> > I'm trying to open under linux, but the format seems to be very strange
> > (doesn't seem to be neither big endian nor little endian). For example, the 
> > set
> > of numbers 2, 288, 2624, 490 (or in hex 0x2 0x120, 0xA40, 0x1EA) comes out 
> > (in
> > hex)
> Your first 0x2 should be 0x002 to keep padding correct.
> 
> > 02 00 00 00    20 01 00 00    40 0D 0A 00    00 EA 01 00
>                                     ^
>                                   where did the D come from?
> > 
> > Any idea what the format is and how to read it?
> 
> I don't have a hex calculator handy (and I don't have time at the moment
> to do it by hand).  Please verify the decimal to hex converion.  

Psst... 

  printf "%04X\n"  2 288 2624 490
  0002
  0120
  0A40
  01EA

But don't tell anybody

-- 
Tzafrir Cohen         | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |                    | a Mutt's
[EMAIL PROTECTED] |                    |  best
ICQ# 16849754         |                    | friend


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to