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

/*************************************************************************
 *	dfa_scanf(dp, report)
 *
 *	Use the specified DFA to scan standard input and report matches.
 *************************************************************************/
DFA_Error _cdecl
dfa_scanf(dp, report)
	DFAPtr	dp;
	/* Call-back function to report matches */
	int	(_cdecl *report) PROTO((size_t off, DFA_PatID patID));
{
	extern int _cdecl	fgetc PROTO((FILE *));
#ifdef WIN_DUMB
	/* Well, so I cheated a little */
	return dfa_pscanf(dp, (int (_cdecl *) PROTO((Nlm_VoidPtr)))fgetc, stdin, report);
#else
	return dfaErrUnknown;
#endif
}

