I am using mingw64 to compile a DLL.
I have read that:
The name decoration for __sdtdcall-declared functions in MinGW is FunctionName@nn, where @nn is the number of bytes of parameters passed to the function. By this mechanism, it’s not possible to call a function with the ‘wrong’ type, or even with the wrong number of parameters.
My question is as in the title: How to find the number of bytes of parameters passed to the function?
The sizeof(type) function gives the number of bytes for a particulat data type.
Examples:
If your asking about strings ( char * ):