fdev_get_udata(stream)
This macro retrieves a pointer to user defined data from a FILE stream object.