[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Windows: stdout isn't properly set to binary mode
From: |
Micah Cowan |
Subject: |
Re: [Bug-wget] Windows: stdout isn't properly set to binary mode |
Date: |
Thu, 13 Jan 2011 20:20:47 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
On 01/13/2011 11:42 AM, Ray Satiro wrote:
> This is true, NULL is not a valid parameter for freopen(), f etc, in
> windows. Generally speaking with concern to all API all parameters must
? be valid and cannot be NULL unless explicitly permitted. For example,
> free(NULL) is ok because the C standard explicitly permits it.
FWIW, NULL is in fact explicitly permitted as a parameter value for
freopen() by the C standard; at least it has been for the last 12 years.
Not that anyone (Microsoft in particular) pays attention to the 1999 C
standard, I guess.
--
Micah J. Cowan
http://micah.cowan.name/