I
infobahn
Allin said:Allin said:Yes, but... At least on GNU/Linux, if you consult the man page for
any given "C" function, you are given clear information on whether
it is ISO C, POSIX, BSD or something else. I think that is less
clear in the Windows world.
http://tinyurl.com/3m424 (MSDN page on compatibility)
Also, every[1] C function listed in MSDN has a compatibility section
which gives clear information on the matter.
There are lots of reasons to bash MS. This isn't one of them.
[1] No, of course I didn't. Would you have done? I just looked at
one, actually.
A coupla quotes From MSDN:
<quote>
malloc
Allocates memory blocks.
void *malloc( size_t size );
Routine Required Header Compatibility
malloc <stdlib.h> and <malloc.h> ANSI, Win 95, Win NT
^^^^^^^^
Yes, that's an error from ANSI's (and ISO's) point of view. So what?
The compatibility information you asked for is there.
</quote>
<quote>
double sin( double x );
[snip]
Example
/* SINCOS.C: This program displays the sine, hyperbolic
* sine, cosine, and hyperbolic cosine of pi / 2.
*/
#include <math.h>
#include <stdio.h>
void main( void )
{
</quote>
I rest my case.
Here is your proposition again:
"Yes, but... At least on GNU/Linux, if you consult the man page
for any given "C" function, you are given clear information on
whether it is ISO C, POSIX, BSD or something else. I think that
is less clear in the Windows world."
You quoted two examples, malloc and sin, to support your case. In
neither case did you demonstrate that the compatibility information
is unclear or missing. Yes, the MS documentation has mistakes, and
indeed some of them betray ludicrous ignorance of the language. But
that wasn't the basis of your original claim, which was about lack
of, or lack of clarity in, compatibility information in their docs.