home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / makedce.zip / EXAMPLES.ZIP / examples / MClient / mclient.c < prev    next >
C/C++ Source or Header  |  1994-05-08  |  500b  |  27 lines

  1. #include <stdio.h>
  2. #include <makedce/glue.h>
  3.  
  4. int mult_by_ten(int);
  5. int add_ten(handle_t h, int);
  6.  
  7. main () {
  8.  
  9.   int num;
  10.  
  11.   printf (" Please enter a number :\n" );
  12.   scanf ("%d", &num);
  13.  
  14.   printf ("\n You have entered the number %i\n", num);
  15.   
  16.   num = mult_by_ten(num);
  17.   printf (" multiplying by 10 gave %d\n", num);
  18.  
  19. #ifdef NO_DCE
  20.   num = add_ten(NULL, num);
  21. #else
  22.   num = add_ten(IFBindingHandle(IFHandleN("I2")), num);
  23. #endif
  24.   printf (" adding 10 gave %d\n", num);
  25.  
  26. }
  27.