/*
**    Name: check.c
**
**    Date: Thu Jul 31 19:24:10 2003
**
*/

#include "odbcdm.h"

osbool check_quit(void)
    {
    int counter,
        index;

/* Can quit if manager not initialised */

    if (riscosdlrefinit == 0)
        {
        return TRUE;
        }

    counter = 0;
    index = 0;

/* Check for any drivers with a count > 0 */

    while (counter < 64)
        {
        if (riscosdlref[counter].count != 0)
            {
            index++;
            }

        counter++;
        }

    if (index == 0)
        {
        return TRUE;
        }

    return FALSE;
    }
