Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.331 kb
dd2d02b @jnthn Tests for OpaquePointer.
authored
1 #include <stdio.h>
2
3 #ifdef WIN32
4 #define DLLEXPORT __declspec(dllexport)
5 #else
6 #define DLLEXPORT extern
7 #endif
8
9 DLLEXPORT void * ReturnSomePointer()
10 {
11 char *x = "ok 1 - Got passed back the pointer I returned";
12 return x;
13 }
14
15 DLLEXPORT void TakeSomePointer(void *ptr)
16 {
f163b01 @arnsholt Suppress compile warning.
arnsholt authored
17 printf("%s\n", (char *) ptr);
dd2d02b @jnthn Tests for OpaquePointer.
authored
18 fflush(stdout);
19 }
Something went wrong with that request. Please try again.