Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regarding stdio.h

Tags:

c

header-files

Confession: I am a novice.

Question: I was checking out stdio.h, but I could not find the definition of the fopen function. Can somebody please tell where can I find the definition?

regards,

bug.

like image 610
babon Avatar asked Sep 06 '25 17:09

babon


1 Answers

the declaration should be in stdio.h (afaik the standard requires this), but it's not likely you're going to find the definition there*. If you are using an open source os, it probably has packages containing source code (containing the definition) you can download. Else, sorry, no definition available.

*supposing the author considers definition to mean the actual implementation whereas declaration rather refers to function prototype

like image 64
stijn Avatar answered Sep 09 '25 18:09

stijn