// ------------------------------------------------------------------------------------------------
// dcPrintf.c
// 
// A formatted print statement for the dc, this will blow if the string
// is too long.
//
// COPYRIGHT (C) SEGA OF AMERICA, INC. 1998
// All rights reserved.
//
// Information and source code samples contained herein are 
// provided "as-is", without representations or warranties, and 
// are subject to change without notice.
//
// SEGA OF AMERICA, INC. cannot support modifications or 
// derivative works created from the sample source code provided. 
// Developers may use, reproduce, and modify portions or entire 
// sections of the sample source code for the purposes of creating
// Dreamcast applications.  
//
// Sample source code contained herein may not be appropriate 
// for use under all circumstances.  Please consult Developer 
// documentation provided along with your Dreamcast unit for
// additional information and suggestions.
//
//
// Author: Ralph "Cooksey" Thomas
//
// Tabs: 4
//
// Rev:			04/07/99	Added this header
// ------------------------------------------------------------------------------------------------

#include <shinobi.h>
#include <ac.h>
#include <acassert.h>
#include <stdarg.h>
#include <stdio.h>

void dcPrintf(short x,short y,const char *format,...);

// STARTDOC ---------------------------------------------------------------------------------------
// FUNCTION NAME dcPrintf
// TERSE DESCRIPTION printf's to the Dreamcast 
// 
// FORMAT
// 
// #include <ac.h>
// 
// void acPrintf(const char *format,...)
// 
// PARAMETERS
// 
// Standard printf args.
// 
// RETURN VALUE
// 
// void
// 
// FUNCTION
// 
// Formatted printing to the dreamcast display, this will cause an error if the 
// string is too long...
// 
// ENDDOC -----------------------------------------------------------------------------------------

void dcPrintf(short x,short y,const char *format,...)
{
va_list argptr;
char buffer[255];

va_start(argptr, format);
vsprintf(buffer, format, argptr);
va_end(argptr);

njPrint(NJM_LOCATION(x,y),buffer);
}


