i've looked in the files below stdio.h and in the file _mingw.h
_CRTIMP and __cdecl are declared
there is this in a (longer) comment
".._CRTIMP As above. For MS compatibility. ..."
dont know exactly how it can be for MS compatibility. dont think you should try to make use of the internals of stdio.h (as it says in the file) but maybe it gives some insight
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a newbie. Looking at "hello world" program,the first line was:
#include <stdio.h>
I opened stdio.h to see wat's iside and found a lot of lines that look like:
_CRTIMP FILE __cdecl fopen (const char, const char*);
Now I understand the prototype
FILE fopen (const char, const char*);
but I don't understand
_CRTIMP and __cdecl
Can anybody explain what that is?
Thanks Frank B
need to know basis :p
i've looked in the files below stdio.h and in the file _mingw.h
_CRTIMP and __cdecl are declared
there is this in a (longer) comment
".._CRTIMP As above. For MS compatibility. ..."
dont know exactly how it can be for MS compatibility. dont think you should try to make use of the internals of stdio.h (as it says in the file) but maybe it gives some insight
cdecl refers to a 'calling convention' and is the standard for C / C++ programs. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_core___cdecl.asp I'm thinking that CRTIMP is part of the return typing, probably something like C RunTime IMPort though I'd didn't find a helpful link to support that. It looks that it's usually defined as:
define _CRTIMP __declspec(dllimport)