home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / imprintf.h__ / IMPRINTF.H
Encoding:
C/C++ Source or Header  |  1992-10-26  |  1.6 KB  |  29 lines

  1. /*****************************************************************************
  2. *                                                                            *
  3. * Name: imprintf - IMemMgr Version of the PMPRINTF function                  *
  4. *                                                                            *
  5. * Description:                                                               *
  6. *                                                                            *
  7. *  This file provides the definitions necessary to use the "imprintf"        *
  8. *  library function within a PM program.  All "printf" output is             *
  9. *  directed to a separate window on the PM Desktop that is maintained by the *
  10. *  PMPRINTF.EXE program.  PMPRINTF.EXE must be loaded BEFORE any             *
  11. *                                                                            *
  12. *  Note: imprintf() is a specially modified version of PMPRINT that doesn't  *
  13. *  call malloc() and uses a semaphore to address multithread issues.         *
  14. *                                                                            *
  15. *****************************************************************************/
  16. #ifndef _IMPRINTF
  17. #define _IMPRINTF
  18.  
  19. // Define a macro to convert all occurrences of the "printf" library
  20. // call name to call the internal program.  This is required do the
  21. // the problem of duplicate symbol definition errors from the linker.
  22. // #define printf imprintf
  23.  
  24. // Here's the prototype for the internal "printf" work-a-like function
  25. // int _cdecl imprintf(const char *,...);
  26. extern "C" int  imprintf(const char *,...);
  27.  
  28. #endif
  29.