How can I prove that fread calls ReadFile and fopen calls CreateFile

I know this sounds a little silly, but is there any way to prove this on Windows:

  • fopen function calls winapi function CreateFile (or CreateFileEx)
  • fread the function calls the winapi ReadFile (or ReadFileEx) function

If there is a more general way to determine how some C library functions call winapi functions, I am also happy with this answer.

We have a debate, and I'm interested in some evidence. I'm interested in Visual C.

+5
source share
2 answers

Visual C comes with source code for the C runtime library. Will this settle?

+4
source

( kernel32.dll). , , fopen. , fopen CreateFile.

+2

All Articles