home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IMPRINTF.H < prev    next >
C/C++ Source or Header  |  1993-10-22  |  2KB  |  30 lines

  1. #ifndef _IMPRINTF_
  2. #define _IMPRINTF_
  3. /*******************************************************************************
  4. * FILE NAME: imprintf.h                                                        *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *                                                                              *
  8. * COPYRIGHT:                                                                   *
  9. *   Licensed Materials - Property of IBM                                       *
  10. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  11. *   All Rights Reserved                                                        *
  12. *   US Government Users Restricted Rights - Use, duplication, or               *
  13. *   disclosure                                                                 *
  14. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  15. *                                                                              *
  16. *******************************************************************************/
  17.  
  18. // Define a macro to convert all occurrences of the "printf" library
  19. // call name to call the internal program.  This is required do the
  20. // the problem of duplicate symbol definition errors from the linker.
  21. // #define printf imprintf
  22.  
  23. // Here's the prototype for the internal "printf" work-a-like function
  24. // int _cdecl imprintf(const char *,...);
  25. extern "C" int  imprintf(const char *,...);
  26.  
  27. #define IC_PRINTFMAXLEN  1024
  28.  
  29. #endif
  30.