Why does fopen_s have the paramater FILE **_File
rather then the FILE *_File
that fopen has? And what is the difference between those two functions?
tomtetlaw
-1
Posting Pro
Recommended Answers
Jump to PostWhy does fopen_s have the paramater FILE **_File rather then the FILE *_File that fopen has?
Standard fopen returns the FILE pointer, but fopen_s instead returns an error code. Thus, an output parameter in the form of a pointer to a pointer to FILE is used to "return" a handle …
All 4 Replies
Narue
5,707
Bad Cop
Team Colleague
tomtetlaw
-1
Posting Pro
Narue
5,707
Bad Cop
Team Colleague
tomtetlaw
-1
Posting Pro
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.