Dave,
Was snprintf not printf, but same problem. Thanks - much appreciated.
- Original Message
From: Dave Korn <[EMAIL PROTECTED]>
To: cygwin@cygwin.com
Sent: Sunday, October 1, 2006 7:36:28 PM
Subject: RE: ntohl returns negative on Windows XP
On 02 October 2006 03:28, Mark
On 02 October 2006 03:28, Mark Seery wrote:
> ntohl is returning 0xFE725D7B as a negative number (-26059397).
> Is this the correct beavior. Should be: 4268907899?
>
> variables being used are declared as unsigned int.
Show us the code. Probably you forgot the 'u' off the printf %-specifier.
ntohl is returning 0xFE725D7B as a negative number (-26059397).
Is this the correct beavior. Should be: 4268907899?
variables being used are declared as unsigned int.
cyg version 1.90
windows XP professional 2002 service pack 2
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
3 matches
Mail list logo