home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / imprintf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  1.7 KB  |  33 lines

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