blob: 4cfd7c9c0ad0c25a1d0ee797fa093d4d689afb3a [file] [log] [blame]
Yun Penga93e9de2016-06-30 14:27:38 +00001#include <stdio.h>
2#include <windows.h>
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <time.h>
9
10__declspec(dllexport) char *get_time() {
11 time_t ltime;
12 time(&ltime);
13 return ctime(&ltime);
14}
15
16__declspec(dllexport) void say_hello(char *message) {
17 printf("Hello from dll!\n%s", message);
18}
19
20#ifdef __cplusplus
21}
22#endif
23