This function returns one of the following values:
1 if the specified flag is set.
0 if the specified flag is not set.