-5

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.

Manul667
  • 13
  • 2

2 Answers2

2

These are pointers, a central C concept you should know about if you want to use this language. Some informations here.

limserhane
  • 994
  • 1
  • 5
  • 16
  • 1
    Clear, short, true and still kind and via appropriate link helpful. I failed to think of an answer like this. Good work. – Yunnosch Jan 06 '21 at 16:40
2

_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.

abelenky
  • 61,055
  • 22
  • 102
  • 154