/*
 * Copyright (c) 2004 Sendmail, Inc. and its suppliers.
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 */

#include "sm/generic.h"
SM_RCSID("@(#)$Id: scprtcnf.c,v 1.5 2004/11/01 17:51:36 ca Exp $")
#include "sm/types.h"
#include "sm/io.h"
#include "sm/sccnf.h"
#include "sm/sccnfdef.h"
#include "sm/sm-conf-prt.h"

/*
**  SC_PRT_CNF -- Print configuration data
**
**	Parameters:
**		sc_cnf -- SMTPC configuration context
**		fp -- file for output
**		all -- print also "global" config data?
**
**	Returns:
**		none.
*/

void
sc_prt_cnf(sc_cnf_P sc_cnf, sm_file_T *fp, bool all)
{
	if (all)
		(void) sm_conf_prt_conf(sc_global_defs, sc_cnf, fp);
	else
		(void) sm_conf_prt_conf(sc_defs, sc_cnf, fp);
}


syntax highlighted by Code2HTML, v. 0.9.1