components/prboom/g_game.c
// CPhipps - renamed to doom_printf to avoid name collision with glibc
renamed to doom_printf to avoid name collision with glibc
renamed to doom_printf to avoid name collision with glibc
void doom_printf(const char *s, ...)
{
  static char msg[MAX_MESSAGE_SIZE];
  va_list v;
  va_start(v,s);
#ifdef HAVE_VSNPRINTF
  vsnprintf(msg,sizeof(msg),s,v);        
#else
  vsprintf(msg,s,v);
#endif
  va_end(v);
  players[consoleplayer].message = msg;  
}
void doom_printf ( const char * s , ... ) { static char msg [ MAX_MESSAGE_SIZE ] ; va_list v ; va_start ( v , s ) ; #ifdef HAVE_VSNPRINTF vsnprintf ( msg , sizeof ( msg ) , s , v ) ; #else vsprintf ( msg , s , v ) ; #endif va_end ( v ) ; players [ consoleplayer ] . message = msg ; }
CPhipps - renamed to doom_printf to avoid name collision with glibc
CPhipps - renamed to doom_printf to avoid name collision with glibc
/* print message in buffer */ // set new message