what is the meaning of the asterisk after a variable, for example here in the function _tempnam ? :
_CRTIMP char* __cdecl __MINGW_NOTHROW _tempnam (const char*, const char*);
I always see this in function arguments.
what is the meaning of the asterisk after a variable, for example here in the function _tempnam ? :
_CRTIMP char* __cdecl __MINGW_NOTHROW _tempnam (const char*, const char*);
I always see this in function arguments.
These are pointers
, a central C concept you should know about if you want to use this language. Some informations here.
_tempnam
is a function.
That function takes two parameters.
The first parameter is a pointer to a char
.
Any char
referenced by that pointer cannot be written-to (it is const
).
The second parameter is a pointer to a char
.
Any char
referenced by that pointer cannot be written-to (it is const
).
The return value of the function is a pointer to char
.
The rest of the declaration suggests that the function is a C-Runtime-Implementation (CRTIMP), called using the C-calling convention, and does not throw any exceptions.