C
Chris Hills
Andrew said:That curses is a screen display, or that you need a screen to use a
screen display?
Yes. However that screen or terminal my not be connected to the system
all the time.
I have set up things like routes using a terminal connected to the
engineers rs232 port. When I worked on comms equipment there was always
a serial port for local initialisation etc. Usually a VT100 to VT52
terminal emulation was used. Curses would have been used for that.
Not everything has a web server built into it. Particularly as they are
not universal. A Vt100 or VT52 only needs a 40 col 25 line mono screen.
Please give an example, because if a system never communicates, it is
for all intents and purposes a rock.
Toys, microwave ovens, fridges, dish washers, washing machines, bombs,
batteries.... the list is endless.
Very many embedded systems do not need to communicate outside their own
system. Many systems after they are switched on are automatic.
Something similar to stdio.h, I suppose. Or an extension of stdio.
FILE *sh = fopen("192.168.0.100", "n");
fprintf(sh, "Hello, other machine!\n");
That already exists
However most safety critical or high integrity systems are not likely to
use stdio anyway.
Besides fprintf is of little use for fieldbus, CAN Lin etc.
You might suggest that not all networks use IP,
Not by a VERY long way. Automotive systems use CAN and LIN The busses
for all these systems and in fact all field-bus, control systems and
non-PC networks have their own standards....
So your new "standard" will be ignored by the embedded and controll
systems world to start with which are the majority of the C users these
days. On the desk top the majority have moved to C++, C#, Java etc
apart from the mob that never left COBOL and Fotran
but not all systems
use the same filesystem (and indeed there is much more diversity
there),
Correct.
and yet fopen for files is standardized.
No it's not.... it depends on they system you are using. Many systems
have their own methods.
My first
statement is just as portable as fopen("/etc/hosts", "r").
but not much use. Why do you thing that in many systems printf is the
first to be banned. It is large and generic.
Refuting the credibility of the C standard on clc is not a very good
idea. ;-)
Why? Other members of the ISO C panel have also said much the same. And
if those of use who are on the ISO C panel say it who are you to say
otherwise? c.l.c is not the authority on ISO C
The truthhood of a statement is binary; either a person is very
limited or they are not.
When you are young life is black and white. With experience you find
that life has only one absolute. -273.15 Everything else is relative
and shades of gray. There are no absolutes.
Re knowledge. on exams whilst there is a pass fail you also find that
are a ranges or grades of both pass and fail so knowledge is graduated
not a binary thing.
Broadly some have a good knowledge of others limited and some very
limited. There are very few binary answers.
While your second statement is true,
the first ("No.") is not logically connected to it.