bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [PATCH] Small fix for limited number of strings (and pote


From: Micah Cowan
Subject: Re: [Bug-wget] [PATCH] Small fix for limited number of strings (and potential garbage value) in arguments to concat_strings
Date: Tue, 21 Oct 2014 08:46:22 -0700

On Mon, Oct 20, 2014 at 7:02 PM, Yousong Zhou <address@hidden> wrote:
> I am not sure here.  Do we always assume sizeof(char) to be 1 for
> platforms supported by wget?

FWIW, sizeof(char) is always 1 by definition; the C standard
guarantees it. Even on systems with no addressable values smaller than
16 bits, because on such systems, C defines a "byte" to be 16 bits
(recall that, originally at least, a byte isn't necessarily an octet,
and that's the meaning the C standards use).

If a platform doesn't have sizeof(char) == 1, it's not the C language. :)

-mjc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]