blob: a9d7f047c465d1c14a45c2e86b4d9ef1c9f3d86e [file] [log] [blame]
Yun Penga93e9de2016-06-30 14:27:38 +00001#include <stdio.h>
Yun Penga65ce6d2019-02-12 01:41:08 -08002#include <time.h>
Yun Penga93e9de2016-06-30 14:27:38 +00003#include <windows.h>
4
Yun Penga65ce6d2019-02-12 01:41:08 -08005#include "examples/windows/dll/hello-library.h"
Yun Penga93e9de2016-06-30 14:27:38 +00006
Yun Penga65ce6d2019-02-12 01:41:08 -08007DLLEXPORT char *get_time() {
Yun Penga93e9de2016-06-30 14:27:38 +00008 time_t ltime;
9 time(&ltime);
10 return ctime(&ltime);
11}
12
Yun Penga65ce6d2019-02-12 01:41:08 -080013DLLEXPORT void say_hello(char *message) {
Yun Penga93e9de2016-06-30 14:27:38 +000014 printf("Hello from dll!\n%s", message);
15}