G
gruzdnev
Hi all,
I've started to program in C not long ago, and I've got some questions:
(I work on Linux 2.4.22/Debian)
1. Why the "**var" construct is used? What are the cases when it is
commonly needed? I'd like to read more about it, but there's nothing in
K&R on this theme, AFAIR.
2. Suppose, I want to see the source code of the "fopen" function used
by my system. Where do I have to look to learn it? Is it some header
file? (/usr/include/stdio.h contains only the pre-declaration of it) Is
it an OS-specific question?
3. Why is "___P" used in declaraion of functions like "main __P((int,
char *[]));"? What is the sense of it? Does using it have any pluses?
Where do I read about it (online, preferably)?
Thanks,
K.Gruzdnev
I've started to program in C not long ago, and I've got some questions:
(I work on Linux 2.4.22/Debian)
1. Why the "**var" construct is used? What are the cases when it is
commonly needed? I'd like to read more about it, but there's nothing in
K&R on this theme, AFAIR.
2. Suppose, I want to see the source code of the "fopen" function used
by my system. Where do I have to look to learn it? Is it some header
file? (/usr/include/stdio.h contains only the pre-declaration of it) Is
it an OS-specific question?
3. Why is "___P" used in declaraion of functions like "main __P((int,
char *[]));"? What is the sense of it? Does using it have any pluses?
Where do I read about it (online, preferably)?
Thanks,
K.Gruzdnev