/****************************************************************
 * This software is Copyright (C) 1986-1998 by                  *
 *                                                              *
 * F6FBB - Jean-Paul ROUBELAT,  jpr@f6fbb.org                   *
 * 6, rue George Sand                                           *
 * 31120 - Roquettes - France                                   *
 *                                                              *
 * License to copy and use this software is granted for         *
 * non-commercial use provided that it is identified as         *
 *                                                              *
 * "FBB packet-radio BBS software by Jean-Paul ROUBELAT, F6FBB" *
 *                                                              *
 * in all material mentioning or referencing this software      *
 * or this function.                                            *
 *                                                              *
 * These notices must be retained in any copies of any part of  *
 * this documentation and/or software.                          *
 *                                                              *
 * Parts of code have been taken from many other softwares.     *
 * Thanks for the help.                                         *
 ****************************************************************/

/*
 * MBL_LOG.C
 *
 */

#include <serv.h>

void ouvre_log (void)
{
	char fichier[80];

	sprintf (fichier, "LOG\\FBBLOG.%02d", num_semaine);
	log_ptr = fappend (d_disque (fichier), "b");
}


void ferme_log (void)
{
	if (log_ptr)
	{
		fclose (log_ptr);
		log_ptr = NULL;
	}
}
