Describe implication of upstream ICU-22610
[Samba.git] / testprogs / win32 / midltests / valid / midltests_strings_array_01.idl
blobdb05bb27359b78e72a3e5e6f1e4cda3e409b3fc1
1 #ifndef MIDLTESTS_C_CODE
4 uuid("225b9fcb-eb3d-497b-8b0b-591f049a2507"),
5 pointer_default(unique)
7 interface midltests
9 struct strings {
10 long count;
11 [size_is(count),string] char *val[];
14 long midltests_fn(
15 [in,out,ref] struct strings *s
19 #elif MIDLTESTS_C_CODE
21 static void midltests(void)
23 const char *s1 = "foo";
24 const char *s2 = "bar";
25 char *a[] = { "foo", "bar2", NULL };
26 char buffer[1024];
27 struct strings *s = buffer;
29 s->count = 3;
30 s->val[0] = "foo";
31 s->val[1] = "bar2";
32 s->val[2] = NULL;
34 cli_midltests_fn(s);
37 long srv_midltests_fn(struct strings *a)
39 printf("srv_midltests_fn: Start\n");
40 printf("srv_midltests_fn: End\n");
41 return 0x65757254;
44 #endif