Re: C portability is a myth

From: infobahn (infobahn_at_btinternet.com)
Date: 02/23/05


Date: Wed, 23 Feb 2005 02:52:44 +0000 (UTC)

Allin Cottrell wrote:
>
> Randy Howard wrote:
> >
> > Well, as on any platform, if you ask for "interesting information",
> > I.e. the kind of data that is never available in standard C, then
> > yes, you may see yourself including a lot of headers that don't
> > exist elsewhere. However, this is also true on UNIX/Linux platforms,
> > where #include <unistd.h> seems to be boilerplate for "All the
> > world's a UNIX", and will get you into trouble going the other way.
>
> 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.



Relevant Pages

  • Re: getaddrinfo in XP,9x,etc - how?
    ... This is nasty horrible stuff but it is required for backward compatibility with older systems including that IPv6 preview. ... Winsock2 header file. ... Don't go anywhere near MFC, nor, especially Precompiled Headers, until you're happy with Winsock stuff. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Header and Footer missing: Word 2003 doc edited in Word 2000
    ... Is it possible that you have Word 2000 opening in "Normal View" and Word ... Normal view does not show headers and footers. ... I'm starting to guess there is compatibility issues between Word 2k and Word ...
    (microsoft.public.word.docmanagement)
  • Create live link to text
    ... redo this task in 2003 for compatibility with another person. ... I have a report with a Title on the first page, and headers throughout the ... I read forums on Bookmarks, but it did not work for me. ...
    (microsoft.public.word.pagelayout)
  • Re: Where in the registry does the following goes?
    ... According to MSDN this is stored in win.ini file and it's just for ... compatibility with 16 bits windows ... I've been searching the registry trying to find matches so I can figure it ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: header files in VC
    ... George wrote: ... headers, like are going to be included as well. ... My concern is previously I always follow MSDN and think if we do ... The compiler is supposed to do this so that new, new, delete, and ...
    (microsoft.public.vc.language)