printf_char.h

social-3/printf_char.h · 315 B

From the archive social-3.tgz

Download the archive   « Back to the archive contents

/* source: EOD, by John Booth <???> */
/* stick this in in comm.c somewhere */
/* Remember to include <stdargs.h> */

void printf_to_char (CHAR_DATA *ch, char *fmt, ...)
{
	char buf [MAX_STRING_LENGTH];
	va_list args;
	va_start (args, fmt);
	vsprintf (buf, fmt, args);
	va_end (args);
	
	send_to_char (buf, ch);
}

Site Stats

Snippets: 1791
Codebases: 571