home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
xc212os2.zip
/
SAMPLES
/
CSET
/
M2TEST.MOD
< prev
Wrap
Text File
|
1996-03-05
|
429b
|
18 lines
IMPLEMENTATION MODULE m2test;
IMPORT STextIO, SWholeIO, c_test;
PROCEDURE ["C"] m2func(a,b: INTEGER): INTEGER;
BEGIN
STextIO.WriteString("m2func(");
SWholeIO.WriteInt(a,0); STextIO.WriteChar(',');
SWholeIO.WriteInt(b,0); STextIO.WriteChar(')');
STextIO.WriteLn;
STextIO.WriteString("And now calling 'c_func' from Modula-2");
STextIO.WriteLn;
RETURN c.test.c_func (a, b)
END m2func;
END m2test.