There's not one that I know of, but its a fairly straight forward process to make it, loop through the names, str_cmp, stop at the right one, check that number against set flags.
I think he meant the name of the flag, which is then used to look up the BV. Anyways, I have one (an is_set mprog function) and it wasn't hard to make.