C11 6.3.2.3/6 Any pointer type may be converted to an integer type. Except as previously specified, the result is implementation-defined. If the result cannot b