home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / CL187A.ZIP / EXAMP602.CPP < prev    next >
C/C++ Source or Header  |  1994-03-15  |  626b  |  21 lines

  1.       // examp602.cpp - link with cl.obj
  2.           // Container Lite (CL v 1.87a)
  3.           // (C) Copyright John Webster Small 1994
  4.           // All rights reserved
  5.  
  6.       #include "cl.h"
  7.  
  8.           #define ID_test  5
  9.  
  10.           char * test(char * s1, char *s2)
  11.                { cout << s1; return s2; }
  12.  
  13.           main()  {
  14.                Register_Function(test,ID_test);
  15.            cout << (*(char *(*)(char *, char *))
  16.                     ID2fnC(fnC2ID(test)))
  17.                     ("\nGoodbye persistence headaches!\n",
  18.                     "Hello streamable functions!\n");
  19.                return 0;
  20.           }
  21.