Removed nsprintf(), nvsprintf().
[pspp-builds.git] / src / libpspp / str.c
index ef2be7d068479ee023b484386a9d53d537d30407..655774d63d57c8e1b9b146b9d513edc8abe2a387 100644 (file)
@@ -236,6 +236,21 @@ str_lowercase (char *s)
   for (; *s != '\0'; s++)
     *s = tolower ((unsigned char) *s);
 }
+
+/* Formats FORMAT into DST, as with sprintf(), and returns the
+   address of the terminating null written to DST. */
+char *
+spprintf (char *dst, const char *format, ...) 
+{
+  va_list args;
+  int count;
+
+  va_start (args, format);
+  count = vsprintf (dst, format, args);
+  va_end (args);
+
+  return dst + count;
+}
 \f
 /* Initializes ST with initial contents S. */
 void