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/
