M
Mark McIntyre
sorry, what I mean is "stdio.h" compiler dependent or OS dependent?
both.
or can I create my own "stdio.h" lib for my own OS ?
Of course
sorry, what I mean is "stdio.h" compiler dependent or OS dependent?
or can I create my own "stdio.h" lib for my own OS ?
So in order to keep it portable I'd want to keep my own definitions separate
from the standard library ?
I was the lone holdout for
:1. what's a tyger?
The old spelling of 'tiger'. On old maps, in places unknown and
potentially dangerous, it was supposedly common to put on the map,
"Beyond here be tygers."
:3. is "stdio.h" always necessary in plain C?
No! The C89 standard says in a footnote,
89. A header is not nessisarily a source file [...]
Mark McIntyre said:If you're writing a compiler, you can and must supply a stdio.h, and
definitions for the funcions in it. If you're using a compiler, you must
not do it.
--
Walter Roberson said:There is a 1999 international C standard. There are, though,
not a great number of compilers built for that standard yet.
--
Mark McIntyre said:Whoa there! That doesn't mean its not necessary to *have* stdio.h. It means
its not necessarily a source file - neither more nor less. It could be in a
text library, built into the compiler itself, whatever. VAX C commonly puts
all the std headers into a text library which isn't human readable.
--
Is there such information on creating or defining a "stdio.h" file or whats
been accept as the standard arguments therein?
So, since I'm obvioiusly new to this, does Borlands Turbo C 2.01 follow the
C89 Standard?
The C standard defines what has to be in stdio.h.
(ProteanThread) said:So, since I'm obvioiusly new to this, does Borlands Turbo C 2.01
follow the C89 Standard?
Or, at least it defines what happens when the compiler encounters:
#include <stdio.h>
Mark said:You might want to read chapter 7 and specifically 7.19
(ProteanThread) said:is this book / manual available online or in pdf format ?
Walter said::By the way, you should remove comp.lang.c from the
:crosspost list since your questions have nothing
:to do with it (read its charter).
And where exactly can that charter be found?
comp.lang.c is a rename of a news.* group. It effectively
predates charters. The corresponding news.* group did have a statement
of purpose, but you will, sad to say, get royally roasted if you
post according to that news.* statement of purpose.
(ProteanThread) said:ok that makes sense.
so really, i'd want to keep the standard C library definitions intact and
just add my own OS specific functions?
But would I want to make "stdio.h" more specific to my OS / Compiler ?
Any examples?
But can the header be defined to use only functions that pertain to my OS ?
Makes sense (but microsoft usually never follows the rules anyways)
I plan on only using C (or a subset of C) and Assembler for my OS
(ProteanThread) said:is this book / manual available online or in pdf format ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.