file ptr.

Is there any way to know the filename from an available file pointer.

Nope. I don't think so.

there is no possible function avaliable in C to find it out.