how to get the file name



only has the FILE * handle , how to get the file name ?

for example,i have a function accpet a (FILE *)argumment and return the
file name :
char * getfilename(FILE * fp);

thx for help;

.