Re: platform specific API or C standard API



In article <w5-dnWjcBc13uqXaRVnzvQA@xxxxxxxxxxx>,
Tor Rustad <tor_rustad@xxxxxxxxxxx> wrote:
George2 wrote:
Hello everyone,


Are there any official site to check whether an API (like tolower or
toLower) is platform specific API (e.g. Microsoft platform specific,
Linux specific) or C common standard API?

The official document is the ISO C standard, which is not free.

However, platform specific API's are usually documented locally by the
implementation, just try to check the MSDN doc or man page.

Good platform-specific documentation will say which standards if any
define a particular function.
If you're reading man pages on a unix-ish system, look for a section
titled 'STANDARDS' or 'CONFORMING TO'. The (somewhat out of date)
version of the Microsoft documentation I use at work has a table in the
description of many non-Win32-specific functions that includes a
"compatibility" column that lists any standards that define the
function.


In the case of Microsoft, their lower-case API's, all have an underscore
prefix, so 'tolower' would be named '_tolower' by M$. Turn on the
compiler switch /Za, to get compiler in conforming mode.

Incorrect.
This compiles and runs perfectly fine with the default invocation of
MSVC6:
--------
#include <ctype.h>
#include <stdio.h>

int main(void)
{
printf("tolower('a'): %c\n",tolower('a'));
printf("tolower('A'): %c\n",tolower('A'));

return 0;
}
--------


dave

.



Relevant Pages

  • Re: platform specific API or C standard API
    ... toLower) is platform specific API (e.g. Microsoft platform specific, ...
    (comp.lang.c)
  • Re: platform specific API or C standard API
    ... toLower) is platform specific API (e.g. Microsoft platform specific, ... authoritative C reference (such as Kernighan & Ritchie's ...
    (comp.lang.c)
  • Re: Firewall of SP2 is good?
    ... It's always easier to create your own standards than ... It's the marriage of the browser ... members, developers, and people in Redmond that were part of the core ... >> different than any other platform before it. ...
    (comp.security.firewalls)
  • Re: webapps, why so hard
    ... Web programming is harder than one-platform programming of the past, ... has extremely low UI standards. ... misappropriated it as a programming platform. ... attention has to be made to efficient coding practices and caching ...
    (comp.lang.lisp)
  • Re: webapps, why so hard
    ... has extremely low UI standards. ... Not only does the web create a larger attack surface, ... misappropriated it as a programming platform. ... attention has to be made to efficient coding practices and caching ...
    (comp.lang.lisp)