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 >
Wrap
C/C++ Source or Header
|
1994-05-08
|
500b
|
27 lines
#include <stdio.h>
#include <makedce/glue.h>
int mult_by_ten(int);
int add_ten(handle_t h, int);
main () {
int num;
printf (" Please enter a number :\n" );
scanf ("%d", &num);
printf ("\n You have entered the number %i\n", num);
num = mult_by_ten(num);
printf (" multiplying by 10 gave %d\n", num);
#ifdef NO_DCE
num = add_ten(NULL, num);
#else
num = add_ten(IFBindingHandle(IFHandleN("I2")), num);
#endif
printf (" adding 10 gave %d\n", num);
}