case REGERR_BADCHECK: return "REGERR_BADCHECK"; case REGERR_NOFILE: return "REGERR_NOFILE"; case REGERR_MEMORY: return "REGERR_MEMORY"; case REGERR_BUFTOOSMALL: return "REGERR_BUFTOOSMALL"; case REGERR_NAMETOOLONG: return "REGERR_NAMETOOLONG"; case REGERR_REGVERSION: return "REGERR_REGVERSION"; case REGERR_DELETED: return "REGERR_DELETED"; case REGERR_BADTYPE: return "REGERR_BADTYPE"; case REGERR_NOPATH: return "REGERR_NOPATH"; case REGERR_BADNAME: return "REGERR_BADNAME"; case REGERR_READONLY: return "REGERR_READONLY"; case REGERR_BADUTF8: return "REGERR_BADUTF8";
char *errstr(REGERR err){	switch( err )	{	case REGERR_OK:		return "REGERR_OK";	case REGERR_FAIL:		return "REGERR_FAIL";	case REGERR_NOMORE:		return "REGERR_MORE";	case REGERR_NOFIND:		return "REGERR_NOFIND";	case REGERR_BADREAD:		return "REGERR_BADREAD";	case REGERR_BADLOCN:		return "REGERR_BADLOCN";	case REGERR_PARAM:		return "REGERR_PARAM";	case REGERR_BADMAGIC:		return "REGERR_BADMAGIC";	default:		return "<Unknown>";	}}	// errstr