| <<< M13_COPYSTR.ASM | Index | Invoking COPYSTR Procedure from C++ >>> |
// M13_main.cpp
#include <iostream>
extern "C" int __stdcall COPYSTR( char*, char const* );
int main()
{
char destination[ 100 ] = { 0 };
char const* source = "Hello!";
COPYSTR( destination, source );
std::cout << destination;
return 0;
}
| <<< M13_COPYSTR.ASM | Index | Invoking COPYSTR Procedure from C++ >>> |