Routines for implementing C Expert systems