Regarding stdio.h

Confession: I'm new.

Question: I checked stdio.h, but I could not find the definition of the function fopen. Can someone please tell me where I can find the definition?

Yours faithfully,

error.

+3
source share
8 answers

the declaration should be in stdio.h (this requires a standard, but it is unlikely to find a definition there *. If you use open source os, it probably has packages containing the source code (containing the definition), which you can Download. Else, Sorry, the definition is not available.

*, assuming that the author believes that the definition means the actual implementation, while the declaration most likely refers to the prototype of the function

+3

unix linux,

man fopen

google man fopen, .

man .

+2
extern FILE *fopen (__const char *__restrict __filename,
                    __const char *__restrict __modes) __wur;

, stdio.h.

+2

http://cplusplus.com/ → C Library → cstdio (stdio.h)

0

. C-Coder, . , . "" , , , . .

0

fopen( ) OS X ( ) opensource.apple.com:

http://opensource.apple.com/source/Libc/Libc-498.1.7/stdio/fopen-fbsd.c

, , ; , , , - , .

0
source

Source: https://habr.com/ru/post/1765571/


All Articles