users
[Top] [All Lists]

Re: [cinjug-users] Java vs. C

To: Jim Hurt <Jim.Hurt@xxxxxxxxxxxx>
Subject: Re: [cinjug-users] Java vs. C
From: Kevin F <cj@xxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Oct 2007 19:50:07 -0400
Cc: "Hudson, Loren (GE Infra, Aviation, Non-GE, US)" <loren.hudson@xxxxxx>, users@xxxxxxxxxx
Delivered-to: mailing list users@xxxxxxxxxx
In-reply-to: <4713C75E.5050307@xxxxxxxxxxxx>
Mailing-list: contact users-help@xxxxxxxxxx; run by ezmlm
References: <0BE974242D712B4B86B49792A69D789C02C37DF8@xxxxxxxxxxxxxxxxxxxxxxxx> <4713C75E.5050307@xxxxxxxxxxxx>

On Oct 15, 2007, at 4:02 PM, Jim Hurt wrote:

Hudson, Loren (GE Infra, Aviation, Non-GE, US) wrote:
To clarify, I was just wondering if there was any C syntax that compiles perfectly as Java syntax but doesn't do the same thing.
Yes, and right shifting unsigned ints in C is one of them. Try a >>> n in place of a >> n.

You beat me to the punch (working remotely and couldn't check e-mail until got back to the hotel).


To Eric: if she is translating C's fread() to Java's InputStream.read (), it should be pretty close. She would need to do a little bitmasking of the resultant .read() array as well as assume byte order or use the Java helpers for it... in java.net IIRC




<Prev in Thread] Current Thread [Next in Thread>