Sun Studio 12: C User's Guide

(7.9.6.2) The input for %p conversion in the fscanf function:

The input for %p is equivalent to %x.