[lkml]   [1996]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Possible /etc/hosts parsing bug?

On Sun, 17 Nov 1996, Mike wrote:

> In an effort to line everything up and make it look pretty I modified the
> previous lines to the following:
> Numerically, these have the same values, but when I tried to ping fusion,
> the IP that it was using was When the extra '0's were deleted
> ping worked fine. Is this within the operating specs? Just curious,

I guess it's because of C's way of handing numbers... a leading zero
indicates a number is in octal system, unless the leading zero is followed
by an x, in which case it is hexadecimal.

(and 16 octal _is_ 14 decimal...)


 \ /
  Last update: 2005-03-22 13:37    [W:0.037 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site