Do not call strlen with NULL argument in libgcov.
[gcc.git] / libiberty / vfprintf.c
index ce3fdf9c474538f0ed3e594793a3698fc025694f..2fb6bf07090bea32c7dbfc680655f38d560433f9 100644 (file)
@@ -1,13 +1,15 @@
+/* Provide a version vfprintf in terms of _doprnt.
+   By Kaveh Ghazi  (ghazi@caip.rutgers.edu)  3/29/98
+   Copyright (C) 1998-2019 Free Software Foundation, Inc.
+ */
+
+#include "ansidecl.h"
+#include <stdarg.h>
 #include <stdio.h>
-#include <varargs.h>
-#include <ansidecl.h>
 #undef vfprintf
 
 int
-vfprintf (file, format, ap)
-     FILE *file;
-     const char *format;
-     va_list ap;
+vfprintf (FILE *stream, const char *format, va_list ap)
 {
-   return _doprnt (format, ap, file);
+  return _doprnt (format, ap, stream);
 }