r6541: added double pointer test to win32 echo client
[samba.git] / testprogs / win32 / rpcecho / server.c
index 888199db3d2604a3319d56e2598460164dbf7b10..b5127596dfc906be54eeeb9bad481af653b99d1f 100644 (file)
@@ -139,6 +139,20 @@ void echo_TestSurrounding(echo_Surrounding *data)
        data->x *= 2;
 }
 
+short echo_TestDoublePointer(short ***data)
+{
+       if (!*data) {
+               printf("WARNING: *data == NULL\n");
+               return 0;
+       }
+       if (!**data) {
+               printf("WARNING: **data == NULL\n");
+               return 0;
+       }
+       printf("Incoming double pointer: %d\n", ***data);
+       return ***data;
+}
+
 void main(int argc, char **argv)
 {
        RPC_STATUS status;