I was wondering.
When programming in C you write...
#include <stdio.h>
I was wondering what "stdio.h" is in the machine.
Is it an physical file ?
A member of a physical file ?
Thanks in advance... Fredrik
<stdio.h> would be a source member named "STDIO" in a source physical file
named "H" in library QCLE.
"myfile.h" would be a source member named "MYFILE" in a source physical
file named "H" in the job's library list.
Some of the "system includes" will come from source physical file "H" in
library QSYSINC.
Hope this helps.
Mark Phippard
Fredrik Andreasson wrote:
>
> Hello
>
> I was wondering.
> When programming in C you write...
> #include <stdio.h>
>
> I was wondering what "stdio.h" is in the machine.
> Is it an physical file ?
> A member of a physical file ?
Yes, <stdio.h> is member STDIO of H file, if you specify, for example,
<sys/ioctl.h> means that the compiler will search for IOCTL member in
SYS source file.
--
Dr. Ugo Gagliardelli, Modena, Italy
Spaccamaroni andate a cagare/Spammers not welcome
Also note that (on recent releases) there are IFS symbolic links
defined, such as in:
/QIBM/include
/QIBM/ProdData/ILEC
These may be useful when compiling with stream file input, but I am
unfamiliar with setup of search paths to find include/H files via IFS.
--
Karl Hanson
Thanks for all the answers. I really appreciated it.
I am happy with that but I it would't hurt to explain why I asked you...
You see I am experimenting with C on AS/400.
I have made a program that writes "wow" to the screen.
It works. I would just like it to clear the screen before it writes to it.
And this program runs without problem on DOS for example but not on AS/400.
This is the code I use...
#include <stdio.h>
#include <conio.h>
main()
{
clrscr();
printf("Wow it works...\n");
getchar();
}
It seems like <conio.h> does not exist in as/400 ?
I get this messages when trying to compile...
V01V080783/QCLSRC/CTEST line 2: Unable to find Äinclude file
*LIBL/H(CONIO).
V01V080783/QCLSRC/CTEST line 5: Function clrscr has not been prototyped
prior to use.
Thanks in advance... Fredrik
--> fredrik.a...@xpress.se
"Fredrik Andreasson" <fredrik.1....@volvo.com> wrote in message
news:9afauq$ij9$1...@vg170.it.volvo.se...