nerr_match(3) walk the NEOERR chain for a matching error (clearsilver)


#include <util/neo_err.h>

int nerr_match (NEOERR *err, NERR_TYPE type);


err - the NEOERR that has an error.
type - the NEOERR type, as registered with nerr_register


nerr_match is used to walk the NEOERR chain and match the error against a specific error type. In exception parlance, this would be the equivalent of "catch". Typically, you can just compare a NEOERR against STATUS_OK or just test for true if you are checking for any error.