diff -r c9dc8ba467f4 -r 64ad68837255 src/util.h --- a/src/util.h Tue Jun 29 13:33:44 2004 +0000 +++ b/src/util.h Tue Jun 29 17:23:08 2004 +0000 @@ -394,6 +394,26 @@ FILE *gaim_mkstemp(char **path); /** + * Creates a temporary file and returns a file pointer to it. + * + * This is like mkstemp(), but returns a file pointer. It uses the + * semantics of tempnam() for the directory to use and allocates the + * space for the file path. + * + * The caller is responsible for closing the file and removing it when + * done, as well as freeing the space pointed to by @a path with + * g_free(). + * + * @param path The returned path to the temp file. + * + * @param pattern Pattern for use with the returned filename. + * + * @return A file pointer to the temporary file, or @c NULL on failure. + */ + +FILE *gaim_mkstemp_template(char **path,const char *template); + +/** * Checks if the given program name is valid and executable. * * @param program The file name of the application.