[LCP]getting the filename from a *FILE variable

Karthik Vishwanath karthikv at Alum.Dartmouth.ORG
Wed Jan 12 12:10:02 UTC 2005


I have files parsed from the command line in a program that are
opened using (fp = fopen()), where fp is defined as FILE *fp; 

Is there a function that will give me the filename of the fopen'd file
using fp?

Thanks,

-K





More information about the linuxCprogramming mailing list