Index: iolib/dofmt.c
===================================================================
--- iolib/dofmt.c	(revision b8080f695fcc24dc108f603131b9e7d11393920f)
+++ iolib/dofmt.c	(revision bfc0072417012e9cf8877387e0040d6245a99117)
@@ -24,5 +24,5 @@
 #include "stddefs.h"
 #include "ctype.h"
-#include "varargs.h"
+#include "stdarg.h"
 
 #define	MAXDIGS	11
Index: iolib/printf.c
===================================================================
--- iolib/printf.c	(revision b8080f695fcc24dc108f603131b9e7d11393920f)
+++ iolib/printf.c	(revision bfc0072417012e9cf8877387e0040d6245a99117)
@@ -15,5 +15,5 @@
 #include "stddefs.h"
 #include "biosdefs.h"
-#include "varargs.h"
+#include "stdarg.h"
 
 extern	long	dofmt_();
@@ -27,13 +27,10 @@
 */
 
-long
-printf(fmt, va_alist)
-char *fmt;
-va_dcl
+long printf(char *fmt, ...)
 {
 	register long count;
 	va_list aptr;
 
-	va_start(aptr);
+	va_start(aptr, fmt);
 	count = dofmt_(fpsub, fmt, aptr);
 	va_end(aptr);
Index: iolib/sprintf.c
===================================================================
--- iolib/sprintf.c	(revision b8080f695fcc24dc108f603131b9e7d11393920f)
+++ iolib/sprintf.c	(revision bfc0072417012e9cf8877387e0040d6245a99117)
@@ -6,5 +6,5 @@
 */
 
-#include "varargs.h"
+#include "stdarg.h"
 
 extern long	dofmt_();
@@ -19,15 +19,13 @@
 */
 
-long
-sprintf(str, fmt, va_alist)
-char *str, *fmt;
-va_dcl
+long sprintf(char *str, char *fmt, ...)
 {
 	register long count;
 	va_list aptr;
 
-	va_start(aptr);
 	buff = str;
+	va_start(aptr, fmt);
 	count = dofmt_(spsub, fmt, aptr);
+	va_end(aptr);
 	*buff = '\0';
 	return(count);
