face-underline-p

face-underline-p is a compiled Lisp function in `faces.el'.

(face-underline-p FACE &optional FRAME INHERIT)

Return non-nil if FACE specifies a non-nil underlining.
If the optional argument FRAME is given, report on face FACE in that frame.
If FRAME is t, report on the defaults for face FACE (for new frames).
If FRAME is omitted or nil, use the selected frame.
Optional argument INHERIT is passed to `face-attribute'.