#include <db.h> int DB_SEQUENCE->get_flags(DB_SEQUENCE *seq, u_int32_t *flagsp);
         The DB_SEQUENCE->get_flags() method returns the current flags.
    
         The DB_SEQUENCE->get_flags() method may be called at any time during
         the life of the application.
    
         The DB_SEQUENCE->get_flags() 
            
                  method returns a non-zero error value on failure and 0 on success.