//
// Written by John A deLaubenfels, https://www.adaptune.com/steg.htm .
// Permission granted to use freely in any non-fraudulent way.
//

#ifndef SSPRINT_H
#define SSPRINT_H

#include <string>
#include <stdarg.h>   // ANSI version, not UNIX varargs.h


// the following function behaves just like sprintf(), but writes to a std::string rather than a char *.
//
// Example use: 
//    std::string ssA;
//    ssprint(ssA, "This is my %d attempt to %8.4f format %s stuff into std::strings.", 1, 36.4218926, "bozo");
//

int ssprint(std::string &ssOut, const char *fmt, ...);
int ssAppend(std::string &ssOut, const char *fmt, ...);


#endif // SSPRINT_H

