summaryrefslogtreecommitdiffstats
path: root/innbbsd/file.c
blob: c8f4a8969e6fe64a7ce5331c477db76c66e0488e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}