printf.c~

MudOSa4DGD/mudlib/dgd/lib/sys/efun/printf.c~ · 522 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

/*
 * printf.c
 *
 * The LPC printf() version
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */

#include <dgd_dirs.h>

/* redirect to Abigail's sprintf function */
static varargs string sprintf(string format, mixed args...) {
  return (_SYS_DIR+"efun/Sprintf/sprintf")->sprintf(format, args...);
}


#ifdef MUDOS_COMMUNICATION

/* almost same as sprintf, but write it to the user */
static varargs void printf(string format, mixed args...) {
  write( (_SYS_DIR+"efun/Sprintf/sprintf")->sprintf(format, args...) );
}

#endif

Site Stats

Snippets: 1791
Codebases: 571