/*static char *SCCSID = "@(#)dosprntf.c 6.1 90/11/17";*/

#define SCCSID  "@(#)dosprntf.c 13.9 90/09/17"

#include <os2.h>
#define INCL_DOSP
#include <os2p.h>

#define FNO_NUM  FNO_DOSPRNTF_C
#include <fnodeb.h>
#include <osmac.h>
#include <mi.h>
#include <pgexport.h>
#include <tkexport.h>


/***    printf - format and display a string on the debug terminal
 *
 *      This procedure is used to print a message on the debug terminal.
 *      A subset of the functionality of the standard library routine printf()
 *      is supported.  See _TKVSprintf() in task\tkerr.c for a description
 *      of the supported functionality.
 *
 *      ENTRY   fmt - null-terminated message format string:
 *                    the format string describes the number
 *                    and type of any additional parameters
 *                    passed.
 *      EXIT    number of characters displayed.
 *
 *      Format the user's message and output on the debug terminal.
 */

int cdecl printf( const char *fmt, ... )
{
    /* BUGBUGSTDCALL - resolve fmt's const attribute */
    return( TKVSprintf( NULL, 0, (char *)fmt, SSToDS(&fmt + 1) ) );
}
