home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / sphinx / examples / obj / c_test.c next >
Encoding:
Text File  |  1994-07-07  |  1.2 KB  |  32 lines

  1. /*
  2.     NAME: C_TEST.C
  3.     DESCRIPTION:  This program tests the use of C-- OBJ files with Microsoft
  4.                   C.  Besure to compile OBJTEST.C-- to an OBJ file before
  5.                   attempting to build this program.
  6.                   
  7.                   This program demonstrates interfacing of both procedures
  8.                   and functions.
  9.                   
  10.                   When building this program you will have to specify that
  11.                   you wish to link it with OBJTEST.OBJ.  This is usually
  12.                   done through a make file.  The method of creating and
  13.                   editing a make file varies from compiler to compiler, so
  14.                   its up to you to find out how to do if for your specific
  15.                   C compiler.  You may also have to tell your linker to
  16.                   ignore case sensitivity.
  17. */
  18.  
  19. // the following procedure and function are defined in OBJTEST.C--
  20.  
  21. void extern far pascal display_word(unsigned int wordvalue);
  22. unsigned int extern far pascal double_it(unsigned int wordvalue);
  23.  
  24.  
  25. void main ()
  26. {
  27. display_word(12345);
  28. display_word( double_it(12345) );
  29. }
  30.  
  31.  
  32. /* end of C_TEST.C */