ShelLuser said:Simple: you don't use MSDN documents on the console ("DOS prompt") which is actually common for manual pages. Different operating systems, different approaches.
MSDN style:DESCRIPTION
The function fread reads nmemb elements of data, each size bytes long, from the stream pointed to by stream, storing them at the location given by ptr.
The function fwrite writes nmemb elements of data, each size bytes long, to the stream pointed to by stream, obtaining them from the location given by ptr.
For non-locking counterparts, see unlocked_stdio(3).
RETURN VALUE
fread and fwrite return the number of items successfully read or written (i.e., not the number of characters). If an error occurs, or the end-of-file is reached, the return value is a short item count (or zero).
fread does not distinguish between end-of-file and error, and callers must use feof(3) and ferror(3) to determine which occurred.
Parameters
--------------------------------------------------------------------------------
buffer
Storage location for data.
size
Item size in bytes.
count
Maximum number of items to be read.
stream
Pointer to FILE structure.
Return Value
--------------------------------------------------------------------------------
fread returns the number of full items actually read, which may be less than count if an error occurs or if the end of the file is encountered before reaching count . Use the feof or ferror function to distinguish a read error from an end-of-file condition. If size or count is 0, fread returns 0 and the buffer contents are unchanged. If stream or buffer is a null pointer, fread invokes the invalid parameter handler, as described in Parameter Validation. If execution is allowed to continue, this function sets errno to EINVAL and returns 0.
See _doserrno, errno, _sys_errlist, and _sys_nerr for more information on these, and other, error codes.
Yes, MSDN is in HTML, it is a plus, only plain text will make differences when considering whether the format is structural or not.drhowarddrfine said:MSDN is written for web pages. man pages are written for text. They need to fit on one machine installation and not take up a ton of space, which MSDN does. I don't understand why you didn't include the top half of the man page but the same synopsis of the parameters is included in the description. Plus, if you are just trying to look up the argument list, the man page has it at the top while the MSDN page doesn't show it at all in your example.
As a developer, I used to find MSDN quite verbose and frustrating to go through while the man pages are quick, well-written, and to the point.
kpedersen said:It wont be long before Microsoft changes their MSDN again to make it more trendy. Manpages have remained the same throughout.
Who remembers this and this? I was actually looking for some VB6 stuff but that isn't even available anymore. Nice one Microsoft. Great docs!
Frankly I prefer consistency over simplicity.
I imagine MSDN also doesn't handle duplicate names very well. Whereas the traditional UNIX way of doing things splits things up into kernel, userland etc... (i.e fork(2), system(3)).
And now you spotted one of the first cracks. Remember, any HTML document is going to require a special viewer to read it and present it properly. It will also be a significantly larger file size. It also needs more time to be updated and made to work in all browsers and I'm sure someone will complain about accessibility. Now multiply that times several hundred files.jronald said:Yes, MSDN is in HTML, it is a plus, only plain text will make differences when considering whether the format is structural or not.
...copying HTML as plain text may need some editing
kpedersen said:I see what you mean by separating it out into individual parameters rather than a paragraph containing them all. I can see some advantages to this.
Perhaps this stems from the fact that man pages are not generated from automatic documentation schemes such as Javadoc, Doxygen or Sandcastle / whatever MSDN uses.
Personally, in code I would much prefer a paragraph describing the function in general rather than some XML stuff duplicating the majority of the function signature. If this means that the generated documents cannot appear in the man pages, then I won't lose sleep over it.