def clear_bit(value, bit):
    """
    returns an integer with the bit at offset >bit< set to 0.

    >>> clear_bit(128, 7)
    0
    >>> clear_bit(0, 2)
    0

    >>> '{0:08b}'.format(clear_bit(int('11111111', 2), bit=5))
    '11011111'

    >>> '{0:08b}'.format(clear_bit(int('1111000011110000', 2), bit=13))
    '1101000011110000'
    """
    return value & ~(1 << bit)
