Is it possible to use fclose() once for 2 file pointers.
Somewhat like this : fclose(in,out);
please help
Ahmad Imran
-1
Newbie Poster
Recommended Answers
Jump to Post
fclose()
is declared asint fclose ( FILE * stream );
. As you can see it only takes oneFILE*
. So the answer to your question is no.
All 3 Replies
NathanOliver
429
Veteran Poster
Featured Poster
Ahmad Imran
-1
Newbie Poster
NathanOliver
429
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.