Skip to content
Snippets Groups Projects
Commit d9b070bf authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create fwritelog() to go along with fopenlog() and fcloselog()

The functions aren't DLL-exported, so the difference in FILE* support
between an app and a library is not an issue... yet, but it could be
someday, so just for good measure.
parent 5be88e74
No related branches found
No related tags found
No related merge requests found
......@@ -237,6 +237,11 @@ FILE* fopenlog(scfg_t* cfg, const char* path)
return fp;
}
size_t fwritelog(void* buf, size_t size, FILE* fp)
{
return fwrite(buf, 1, size, fp);
}
void fcloselog(FILE* fp)
{
fclose(fp);
......
/* $Id: nopen.h,v 1.4 2017/11/06 06:28:56 rswindell Exp $ */
/* "Network-file Open" (nopen) and friends */
/****************************************************************************
......@@ -15,21 +13,9 @@
* See the GNU General Public License for more details: gpl.txt or *
* http://www.fsf.org/copyleft/gpl.html *
* *
* Anonymous FTP access to the most recent released source is available at *
* ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net *
* *
* Anonymous CVS access to the development source and modification history *
* is available at cvs.synchro.net:/cvsroot/sbbs, example: *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs login *
* (just hit return, no password is necessary) *
* cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout src *
* *
* For Synchronet coding style and modification guidelines, see *
* http://www.synchro.net/source.html *
* *
* You are encouraged to submit any modifications (preferably in Unix diff *
* format) via e-mail to mods@synchro.net *
* *
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
......@@ -51,6 +37,7 @@ BOOL fmutex(const char* fname, const char* text, long max_age);
BOOL fcompare(const char* fn1, const char* fn2);
BOOL backup(const char* org, int backup_level, BOOL ren);
FILE* fopenlog(scfg_t*, const char* path);
size_t fwritelog(void* buf, size_t size, FILE*);
void fcloselog(FILE*);
#ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment