#include <ncbi.h>
#include <dfa.h>

/*************************************************************************
 *	dfa_fscanf(dp, fp, report)
 *
 *	Use the specified DFA to scan the stream fp and report matches.
 *************************************************************************/
DFA_Error _cdecl
dfa_fscanf(dp, fp, report)
	DFAPtr	dp;
	register FILE	*fp;/* The input stream */
	/* Call-back function to report matches */
	int	(_cdecl *report) PROTO((size_t off, DFA_PatID patID));
{
	extern int	fgetc PROTO((FILE *));
	return dfa_pscanf(dp, (int (*) PROTO((Nlm_VoidPtr)))fgetc, fp, report);
}
