blob: c8f4a8969e6fe64a7ce5331c477db76c66e0488e (
plain) (
tree)
|
|
#include <stdio.h>
#include <stdarg.h>
/*
* The same as sprintf, but return the new string
* fileglue("%s/%s",home,".newsrc");
*/
char *
fileglue(char *fmt,...)
{
va_list ap;
static char gluebuffer[8192];
va_start(ap, fmt);
vsprintf(gluebuffer, fmt, ap);
va_end(ap);
return gluebuffer;
}
|