相关代码 |
|
#include "extcode.h" #include _declspec(dllexport) void LVCStr(CStr input, CStr output); _declspec(dllexport) void LVCStr(CStr input, CStr output) { int i, j; /* Reverse "i" characters. Assume output already has memory. */ for(i = strlen(input) - 1, j = 0; i >= 0; i--, j++) { output[j] = input[i]; } }
相关资源 |
|