473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Some Questions.

Hi Friends,

I have some questions related to C Language.

1What is the difference between the standard C language and Non
standard C language ?

2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?

3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?

I have written some programs in C language and have uploaded the
source codes to my website.

http://zsoftwares.googlepages.com/CPrograms.html
http://zsoftwares.googlepages.com/DSFPrograms.htm

I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?

[I am student of Computer Engg.]
you can mail me at ge*******@gmail.com

GEOrgE

Oct 11 '07 #1
30 2244
GeorgeRXZ said:
Hi Friends,

I have some questions related to C Language.

1What is the difference between the standard C language and Non
standard C language ?
Standard C is C. "Non-standard C" is something that isn't C.
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C language doesn't care which platform you use.
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
C doesn't define Conio.h. If you want one, write your own.
4Which is latest version of C ?
The barely-implemented ISO/IEC 9899:1999.
and who makes changes to the
language Syntax and Add new features or upgrade the language ?
ISO.
I have written some programs in C language and have uploaded the
source codes to my website.

http://zsoftwares.googlepages.com/CPrograms.html
http://zsoftwares.googlepages.com/DSFPrograms.htm

I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
I looked at the list of problems you claim to have solved, and there's no
reason why any of them can't be solved in a way that works on both Windows
and Linux, using the C language.

Then I looked at your code. As well as being poor C, it unnecessarily uses
non-standard language and library extensions. Remove these and tidy up the
C itself, and you will find that you are able to port the code to Linux
effortlessly.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 11 '07 #2
On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
GeorgeRXZ said:
Hi Friends,
I have some questions related to C Language.
1What is the difference between the standard C language and Non
standard C language ?

Standard C is C. "Non-standard C" is something that isn't C.
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?

The C language doesn't care which platform you use.
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

C doesn't define Conio.h. If you want one, write your own.
4Which is latest version of C ?

The barely-implemented ISO/IEC 9899:1999.
and who makes changes to the
language Syntax and Add new features or upgrade the language ?

ISO.
I have written some programs in C language and have uploaded the
source codes to my website.
http://zsoftwares.googlepages.com/CPrograms.html
http://zsoftwares.googlepages.com/DSFPrograms.htm
I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?

I looked at the list of problems you claim to have solved, and there's no
reason why any of them can't be solved in a way that works on both Windows
and Linux, using the C language.

Then I looked at your code. As well as being poor C, it unnecessarily uses
non-standard language and library extensions. Remove these and tidy up the
C itself, and you will find that you are able to port the code to Linux
effortlessly.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).

I expect you to give answers of my four Questions.

1What is the difference between the standard C language and Non
standard C language ?
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?

GEOrgE
Oct 11 '07 #3
GeorgeRXZ wrote:
On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
....
>
Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).
He did answer your questions, interleaving his responses with your
questions in his posting.

If you didn't understand his answers you should have asked for
clarification.

As for not needing remark on your source code, you asked why you
couldn't port it to Linux, so you must have expected people to examine it...
Oct 11 '07 #4
On Oct 11, 11:54 am, GeorgeRXZ <george...@gmail.comwrote:
<snip>
>
Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).
Well, if you cannot accept criticism, please do not post your code for
analysis. It takes a long time to learn how to write portable and
efficient code and people here at clc (like Richard) are the experts
at it and willing to help for free. Accept their comments graciously.
Just a friendly advice.
I expect you to give answers of my four Questions.

1What is the difference between the standard C language and Non
standard C language ?
Standard C is the language that complies to the ISO standards. I have
never heard of anything called Non-standard C. May be any platform
specific code written in C can be called Non Standard C
>
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
If you write portable code, all you would need is to recompile the
code on any supported platform. So, it really doesn't matter. Though
it might depend on your application as there are many things you can
only do using platform specific system calls.
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
conio.h is not a standard header. It is an old MS-DOS a few MS-DOS
specific header which is not used anymore
..
4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
ISO last released the standards in 1999, though as Richard said, it
hasn't been implemented widely.
Regards,
Prayag Narula

Oct 11 '07 #5
In article <11**********************@y42g2000hsy.googlegroups .com>,
GeorgeRXZ <ge*******@gmail.comwrites
>Hi Friends,

I have some questions related to C Language.

1What is the difference between the standard C language and Non
standard C language ?
C is defined in an ISO standard. These have been issued in 1990 (C90)
with updates in 91,93,95 (C95) and the Current version in 1999 (C99)

However most compilers have implemented C95 and are still "working
towards" C99.

C has no io, no screen, no keyboard etc it has no registers, interrupts
or hardware. Therefore virtually all C compiler have extensions to the
language or the library to cater for the environment they are aimed at.

For some environments it is impossible to write a sensible or efficient
program using purely standard C

So all C compilers have some non-standard C extensions.
>2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
Neither. That said there are better C compilers under windows than Linux
as most of the top quality embedded or cross compilers run on Windows.
They are not, however designed to write code for windows but other MCU.

If you want to know whether MS Windows or Linux have the better
compilers there is no answer. It is a religious not an engineering
debate :-)
>3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
Conio.h is one of the extensions or "non-standard c" additions used to
write to the console (screen) in windows. Linux will have other
similar files that are not used in Windows.
>4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
The latest version of C is ISO9899:1990 (+ Technical corridengum1, +TC2,
+TC3) however no one has fully implemented this in any compiler.

The language is decided by an ISO working group WG14 which is made up
with representatives of (I think) about 25 National Bodies or NB's

The NB's meet typically 3-4 times a year and the ISO Working group twice
a year for a week each time.

Obviously a lot of work goes on by email in between There are
proposals, work items and votes. It takes time.
>I have used Turboc compiler (borland International)
This is a good (if obsolete) C compiler system. Many will tell you it is
better them the comparable Microsoft system.
for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
These programs are written for the DOS environment. You use different
libraries eg conio.h and will have compiled it to run under DOS. an EXE
file.

TO run under Linux you will need a Linux compiler.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Oct 11 '07 #6
In article <fG**************@phaedsys.demon.co.uk>, Chris Hills
<ch***@phaedsys.orgwrites
>The latest version of C is ISO9899:1990 (+ Technical corridengum1,
+TC2, +TC3) however no one has fully implemented this in any compiler.

That should be 9899:1999 + TC1,2,3
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Oct 11 '07 #7
Chris Hills wrote:
In article <11**********************@y42g2000hsy.googlegroups .com>,
GeorgeRXZ <ge*******@gmail.comwrites
>I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?

These programs are written for the DOS environment. You use different
libraries eg conio.h and will have compiled it to run under DOS. an EXE
file.

TO run under Linux you will need a Linux compiler.
And to adapt the parts which depend on non-standard extensions (e.g.
conio.h) to use the equivalent functionality on Linux (e.g. ncurses).
Oct 11 '07 #8
GeorgeRXZ wrote:
On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
>GeorgeRXZ said:
>>Hi Friends,
I have some questions related to C Language.
1What is the difference between the standard C language and Non
standard C language ?
Standard C is C. "Non-standard C" is something that isn't C.
>>2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C language doesn't care which platform you use.
>>3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
C doesn't define Conio.h. If you want one, write your own.
>>4Which is latest version of C ?
The barely-implemented ISO/IEC 9899:1999.
>>and who makes changes to the
language Syntax and Add new features or upgrade the language ?
ISO.
>>I have written some programs in C language and have uploaded the
source codes to my website.
http://zsoftwares.googlepages.com/CPrograms.html
http://zsoftwares.googlepages.com/DSFPrograms.htm
I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
I looked at the list of problems you claim to have solved, and there's no
reason why any of them can't be solved in a way that works on both Windows
and Linux, using the C language.

Then I looked at your code. As well as being poor C, it unnecessarily uses
non-standard language and library extensions. Remove these and tidy up the
C itself, and you will find that you are able to port the code to Linux
effortlessly.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999

Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).

I expect you to give answers of my four Questions.

1What is the difference between the standard C language and Non
standard C language ?
The shortest complete description of non-standard C is to include a
complete copy of the C standard. Any C compiler which does not match
that description is compiling a non-standard version of the C language.

Don't expect a complete list of the ways in which different non-standard
versions of C differ from standard C; that list would be thousands of
pages long.
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The answer is "Yes". If that doesn't seem like a valid answer, that's
because you don't understand what's wrong with the question you're asking.

First of all, the C language is the C language, regardless of what
operating system you're using it on. The only thing you can reasonably
ask that is operating system dependent is "which is better, C compilers
for Linux or C compilers for Windows/DOS".

Second problem. Notice that I said "C compilers for Linux" NOT "the
Linux C compiler". That's because there are many different compilers for
both operating system. The answer will be different for different
compilers. The only way you can ask the question with any hope of
getting a meaningful answer is if you ask about a specific Linux
compiler and a specific Windows/DOS compiler.

However, you still can't get a meaningful answer, because you haven't
defined what you mean by better. Do you mean "faster compilation",
"faster executable", "more reliable", "smaller compiler", "smaller
executable", "better diagnostic messages", "better technical support",
"lower cost", something else entirely, or some combination of the above?

Finally, for most of the meanings I listed above for "better", the
answer may depend upon the computer hardware you're using, the
particular program you want to compile, and in some cases it depends
upon which inputs you give to that program. It can also depend upon how
many other users are using the system at the same time you are. There's
no single right answer. The only way to be sure is to do a test run with
a particular program, with particular inputs, on a particular platform.
Keep in mind that whatever test results you get will not necessarily
apply to any other program, any other set of inputs, or any other
platform. You won't even necessarily get the same test results the next
time you use the same program on the same platform with the same inputs.

3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
While you can use those header files in C programs for Windows, they are
not part of the standard C language, but part of the Windows/DOS
operating system. Different facilities are used under Linux to achieve
similar purposes. In general, there is no exact Linux replacement for
any given Windows facility (and vice-versa) - they are organized
differently with different interfaces in the different operating systems.
4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
As far as I could tell, it was perfectly accurate and complete. If you
didn't find it helpful, could you please explain why?
Oct 11 '07 #9
In article <fe**********@aioe.org>, Mark Bluemel
<ma**********@pobox.comwrites
>Chris Hills wrote:
>In article <11**********************@y42g2000hsy.googlegroups .com>,
GeorgeRXZ <ge*******@gmail.comwrites
>>I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
These programs are written for the DOS environment. You use
different libraries eg conio.h and will have compiled it to run under
DOS. an EXE file.
TO run under Linux you will need a Linux compiler.

And to adapt the parts which depend on non-standard extensions (e.g.
conio.h) to use the equivalent functionality on Linux (e.g. ncurses).
Actually as there is curses for both dos and linux he might be better
with a "standard" curses that will work on either platform. By which I
mean use the same API on both.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Oct 11 '07 #10
Chris Hills <ch***@phaedsys.orgwrote:
<ma**********@pobox.comwrites
And to adapt the parts which depend on non-standard extensions (e.g.
conio.h) to use the equivalent functionality on Linux (e.g. ncurses).

Actually as there is curses for both dos and linux he might be better
with a "standard" curses that will work on either platform. By which I
mean use the same API on both.
Actually, since almost none of his code needs or gains (and IMO often
loses) from the use of conio, he should just dike it out. And while he's
doing that, solve the rest of the gratuitous non-portable bits. After
that, he may be ready to tackle the actual bugs he has.

Richard
Oct 11 '07 #11
James Kuyper Jr. said:
GeorgeRXZ wrote:
<snip>
>3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

While you can use those header files in C programs for Windows, they are
not part of the standard C language, but part of the Windows/DOS
operating system.
Actually, conio.h is not part of Windows or DOS (although I see what you're
getting at). Rather, it is a header name that has been adopted by several
different implementors (at the very least, Microsoft, Borland, and Delorie
- but probably others too) to describe a header that provides interfaces
to DOS and (later) Windows operating system functionality.

Unfortunately, these interfaces are not standardised, so even something as
simple as clearing the screen will differ between implementations. For
example, with Borland you call clrscr, whereas in early Microsoft
implementations you call something like _gclearscreen - although I could
easily be misremembering the precise function name.

<snip>

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 11 '07 #12
"GeorgeRXZ" wrote:
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C *language* is operating system neutral. So the language doesn't
change, the implementation of the language changes. Implementation, as used
above, is code for the compiler and associated "stuff" and the hardware.

If you reworked your question so it could *have* an answer, flipping a coin
would probably be just as useful as any answer you are likely to get on a
newsgroup.

You list four operating systems, if you asked which one of *them* is better,
you would then have to define better to get an answer.

And so it goes.
Oct 11 '07 #13
GeorgeRXZ <ge*******@gmail.comwrites:
On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
>GeorgeRXZ said:
Hi Friends,
I have some questions related to C Language.
1What is the difference between the standard C language and Non
standard C language ?

Standard C is C. "Non-standard C" is something that isn't C.
Don't be ridiculous.
>>
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?

The C language doesn't care which platform you use.
That is not what he asked.
>>
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

C doesn't define Conio.h. If you want one, write your own.
Are you being purposely obstructive again? conio does exist. as does
curses. Why would he write his own?

Why?
Oct 11 '07 #14
[comp.lang.c] Kenneth Brody <ke******@spamcop.netwrote:
void cls( HANDLE hConsole )
(snip gloriously bogus M$ code)
Couldn't be simpler, n'est pas[*]?
It's "n'est-ce pas". (I think doing my taxes is actually simpler.)
system("cls");
There are days where system("deltree c:\\*.*"); is what you long for.

--
C. Benson Manica | I appreciate all corrections, polite or otherwise.
cbmanica(at)gmail.com |
----------------------| I do not currently read any posts posted through
sdf.lonestar.org | Google groups, due to rampant unchecked spam.
Oct 11 '07 #15
In article <a6************@news.individual.net>,
Richard <rg****@gmail.comwrote:
>GeorgeRXZ <ge*******@gmail.comwrites:
>On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
>>GeorgeRXZ said:

Hi Friends,

I have some questions related to C Language.

1What is the difference between the standard C language and Non
standard C language ?

Standard C is C. "Non-standard C" is something that isn't C.

Don't be ridiculous.
Welcome to clc. Hope you enjoy your stay.
>>>
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?

The C language doesn't care which platform you use.

That is not what he asked.
>>>
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

C doesn't define Conio.h. If you want one, write your own.

Are you being purposely obstructive again? conio does exist. as does
curses. Why would he write his own?
C is case sensitive.

(Yes, he was being intentionally stupid/obstructive)

Oct 11 '07 #16
GeorgeRXZ wrote:
[...]
Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).

I expect you to give answers of my four Questions.
[...]

Neither Mr. Richard Heathfield nor any others posting here do so as your
employee or slave. Your imperious expectations are rude and insulting.
We expect you to be civil.
Oct 11 '07 #17
"Kenny McCormack" <ga*****@xmission.xmission.comschrieb im Newsbeitrag
news:fe**********@news.xmission.com...
In article <a6************@news.individual.net>,
Richard <rg****@gmail.comwrote:
>>GeorgeRXZ <ge*******@gmail.comwrites:
>>On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
GeorgeRXZ said:
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?

C doesn't define Conio.h. If you want one, write your own.

Are you being purposely obstructive again? conio does exist. as does
curses. Why would he write his own?

C is case sensitive.
So what? Conio.h isn't part of Standard C, no matter which of it's
characters are written in what case. And in Windows/DOS it doesn't matter at
all, as it's filesystem (FAT as well as NFTS) is case insensitiv.

Bye, Jojo
Oct 11 '07 #18
Chris Hills <ch***@phaedsys.orgwrites:
[...]
C has no io, no screen, no keyboard etc it has no registers,
interrupts or hardware. Therefore virtually all C compiler have
extensions to the language or the library to cater for the environment
they are aimed at.
C does have I/O (<stdio.h>), though without support for a lot of
lower-level stuff.
For some environments it is impossible to write a sensible or
efficient program using purely standard C
It depends on what you're trying to do. There are plenty of things
you can do in portable, or even strictly conforming, C, starting with
"Hello, world". But yes, there are plenty of things for which you
need to use non-standard extensions.

The above assumes a hosted implemention. It's likely true that most C
programming these days is done on standalone implementations for
embedded systems, but most beginning C programmers, like the OP, are
unlikely to see anything other than a hosted implementation.

[...]

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Oct 11 '07 #19
In article <fe**********@online.de>,
Joachim Schmitz <jo**@schmitz-digital.dewrote:
>"Kenny McCormack" <ga*****@xmission.xmission.comschrieb im Newsbeitrag
news:fe**********@news.xmission.com...
>In article <a6************@news.individual.net>,
Richard <rg****@gmail.comwrote:
>>>GeorgeRXZ <ge*******@gmail.comwrites:

On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
GeorgeRXZ said:
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
>
C doesn't define Conio.h. If you want one, write your own.

Are you being purposely obstructive again? conio does exist. as does
curses. Why would he write his own?

C is case sensitive.
So what? Conio.h isn't part of Standard C, no matter which of it's
characters are written in what case. And in Windows/DOS it doesn't matter at
all, as it's filesystem (FAT as well as NFTS) is case insensitiv.
And, last I heard, the sun is still rising in the east, and Francisco
Franco is still dead.

Richard's point is that conio does exist and anyone who says otherwise
is clearly indulging their fantasies. The issue is that the nutbars of
this NG like to equate "off topic in clc" with "does not exist".

The "case" issue is a red herring (as you point out), but is the sort of
thing that the nutbars like to latch onto.

Oct 11 '07 #20
In article <a6************@news.individual.net>,
Richard <rg****@gmail.comwrote:
>GeorgeRXZ <ge*******@gmail.comwrites:
>On Oct 11, 2:47 am, Richard Heathfield <r...@see.sig.invalidwrote:
>>C doesn't define Conio.h. If you want one, write your own.
>Are you being purposely obstructive again? conio does exist. as does
curses. Why would he write his own?
Did Richard Heathfield say that conio does not exist? Or did he say
that "C doesn't define Conio.h" ?

I could write, "C doesn't define TwoSkeletonsLaughing.h. If you want
one, write your own." Would you interpret that as me saying
that "In the entire world, no-one has ever created a C include file named
TwoSkeletonsLaughing.h" ? For me to make an assertion about what
everyone in the entire world has ever done would clearly be misplaced,
as I could not possibly have that information. But I *do* have a
complete copy of ANSI X3.159-1989 only inches from my hands, and
I -can- reasonably make assertions about what is or is not defined
there.
--
"Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us." -- Ecclesiastes
Oct 11 '07 #21
Joachim Schmitz wrote:
"Kenny McCormack" <ga*****@xmission.xmission.comschrieb im
Newsbeitrag news:fe**********@news.xmission.com...
C is case sensitive.
So what? Conio.h isn't part of Standard C,
Please don't feed the troll.


Brian
Oct 11 '07 #22
In article <5n************@mid.individual.net>,
Default User <de***********@yahoo.comwrote:
>Joachim Schmitz wrote:
>"Kenny McCormack" <ga*****@xmission.xmission.comschrieb im
Newsbeitrag news:fe**********@news.xmission.com...
C is case sensitive.
So what? Conio.h isn't part of Standard C,

Please don't feed the troll.
Thank you for feeding me. Your contribution is duly noted.

Oct 11 '07 #23
Ernie Wright said:
>>>Richard Heathfield wrote:
in early Microsoft
implementations you call something like _gclearscreen - although I
could easily be misremembering the precise function name.

Close enough. The call was

_clearscreen( _GCLEARSCREEN );
Dat der bunny. Thanks, Ernie.

<snip>

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Oct 12 '07 #24
Mark McIntyre wrote:
[...]
In early microsoft implementations, if you wanted to clear the screen,
you called some video bios function, or jumped to FFFF:FF00. This
cleared the screen, albeit only brielfy..
<OT>

ITYM "F000:FFF0", or "FFFF:0000".

Of course, such a function pointer would need to be declared using
"void (*pointer)(void)", as it didn't return a value. :-)

</OT>

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Oct 12 '07 #25
On Oct 11, 4:32 am, GeorgeRXZ <george...@gmail.comwrote:
Hi Friends,

I have some questions related to C Language.

1What is the difference between the standard C language and Non
standard C language ?
Standard C is the language defined by a standards body (ISO/IEC JTC1/
SC22/WG14). Non-standard C refers to vendor- or platform-specific
extensions to the language (additional keywords, headers, libraries,
etc.). All conforming compilers recognize standard C.
2which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C *language* is the same for each of those platforms -- the
differences come in the platform-specific extensions to the language.
And in that case, it's a wash; one is no better or worse than the
other.
3 Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
Because those are extensions specific to DOS/Windows. The core C
language does not have any built in support for display management
(including bitmap graphics), sound, networking, device input (such as
the keyboard), etc., so each vendor has their own set of extensions to
support that. Under linux, the closest equivalent to conio is curses.
4Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
The latest version is C99, and the standards body I mentioned above is
responsible.
I have written some programs in C language and have uploaded the
source codes to my website.

http://zsoftwares.googlepages.com/CP...SFPrograms.htm

I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
Because you are using headers and functions specific to DOS/Windows
(conio.h, clrscr, etc.). To get this to run on linux, you would have
to replace conio.h and all the associated calls with a different
header (curses.h, clear, etc.)

By the way, use "int main(void)" instead of "void main()". main() is
supposed to return int.
[I am student of Computer Engg.]
you can mail me at george...@gmail.com

GEOrgE

Oct 12 '07 #26
[snips]

On Thu, 11 Oct 2007 19:24:29 +0000, Kenny McCormack wrote:
>>>>>C doesn't define Conio.h. If you want one, write your own.
Richard's point is that conio does exist
Who said otherwise? The statement - quote above - was that C doesn't
define conio.h. It doesn't. That doesn't mean *you* can't create such a
header, or that your implementation can't - it just means exactly what it
says: C doesn't define it.
Oct 15 '07 #27
[snips]

On Thu, 11 Oct 2007 12:16:02 +0100, Chris Hills wrote:
C has no io
Then what, pray tell, are getchar, putchar, and their ilk used for?
Oct 15 '07 #28
In article <de************@spanky.localhost.net>,
Kelsey Bjarnason <kb********@gmail.comwrote:
>[snips]

On Thu, 11 Oct 2007 19:24:29 +0000, Kenny McCormack wrote:
>>>>>>C doesn't define Conio.h. If you want one, write your own.

>Richard's point is that conio does exist

Who said otherwise? The statement - quote above - was that C doesn't
define conio.h. It doesn't. That doesn't mean *you* can't create such a
header, or that your implementation can't - it just means exactly what it
says: C doesn't define it.
And Francisco Franco is still dead.

The point (and a very important point it is) is that many of the
regulars (e.g., CBF), not all of them, but some of them, have explicitly
stated both that "If it isn't in the C standard, it doesn't exist" (1) and
"<xis not C" (2) (where <xis something not mentioned in the standard).

Both statements ((1) and (2) above) are obviously bogus, but we, those
of us in the know, know what it means and accept it as poetic license.
But, and this is another important point, newbies don't know how to take
it, and the whole things has a rather unpleasant smell.

Note also that you sometimes see the wording "... written (entirely) in
ISO C ..." (most recently, I believe, in posts from Heathfield), and
whenever I see this wording, I think "but, but, that's redundant...
According to some of the nutbars here, there's no other kind."

Oct 15 '07 #29
Kenny McCormack wrote:
[...]
The point (and a very important point it is) is that many of the
regulars (e.g., CBF), not all of them, but some of them, have explicitly
stated both that "If it isn't in the C standard, it doesn't exist" (1) and
"<xis not C" (2) (where <xis something not mentioned in the standard).

Both statements ((1) and (2) above) are obviously bogus, but we, those
of us in the know, know what it means and accept it as poetic license.
But, and this is another important point, newbies don't know how to take
it, and the whole things has a rather unpleasant smell.
I'd have to see such a quote in context to see exactly what was said.
Of course, what the (probably) really mean is "it doesn't exist _as_
_far_as_the_standard_is_concerned_".

I have a cup of water next to me. It obviously exists, despite the
fact that the standard makes no mention of cups or water. (Heck, it
doesn't even mention "me".)
Note also that you sometimes see the wording "... written (entirely) in
ISO C ..." (most recently, I believe, in posts from Heathfield), and
whenever I see this wording, I think "but, but, that's redundant...
According to some of the nutbars here, there's no other kind."
I think they would agree that there are other forms out there. There
is "Microsoft C", there is "gcc C", there is "Watcom C", and so on.

The point is, that in clc, the unqualified use of "C" means "ISO C",
but some people need to be told that explicitly. I would probably
say that the software I write is "written entirely in C", but
technically (as far as clc is concerned) it should really be "written
in C, using extensions which are defined in other standards such as
POSIX, plus some other system-specific extensions". The language and
syntax of my code is pretty close to pure "ISO C", but it calls
functions which are not defined by the standard, and those functions
do things which by there very nature are system-specific.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Oct 15 '07 #30
In article <47***************@spamcop.net>,
Kenneth Brody <ke******@spamcop.netwrote:
>Kenny McCormack wrote:
[...]
>The point (and a very important point it is) is that many of the
regulars (e.g., CBF), not all of them, but some of them, have explicitly
stated both that "If it isn't in the C standard, it doesn't exist" (1) and
"<xis not C" (2) (where <xis something not mentioned in the standard).

Both statements ((1) and (2) above) are obviously bogus, but we, those
of us in the know, know what it means and accept it as poetic license.
But, and this is another important point, newbies don't know how to take
it, and the whole things has a rather unpleasant smell.

I'd have to see such a quote in context to see exactly what was said.
Of course, what the (probably) really mean is "it doesn't exist _as_
_far_as_the_standard_is_concerned_".
I stand by my post, though it is to be granted that such things are
always phrased with enough weasel words so that they can claim that that
was not what they meant. But it is designed to say what it says
(Aesopean language).

Oct 20 '07 #31

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ross Micheals | last post by:
All I have some general .NET questions that I'm looking for some help with. Some of these questions (like the first) are ones that I've seen various conflicting information on, or questions that...
12
by: Vibhajha | last post by:
Hi friends, My sister is in great problem , she has this exam of C++ and she is stuck up with some questions, if friends like this group provides some help to her, she will be very grateful....
1
by: Tony Johansson | last post by:
Hello Experts! I have some questions about inheritance that I want to have an answer to. It says "Abstract superclasses define a behavioral pattern without specifying the implementation" I...
162
by: techievasant | last post by:
hello everyone, Iam vasant from India.. I have a test+interview on C /C++ in the coming month so plz help me by giving some resources of FAQS, interview questions, tracky questions, multiple...
50
by: Jatinder | last post by:
I 'm a professional looking for the job.In interview these questions were asked with some others which I answered.But some of them left unanswered.Plz help. Here are some questions on C/C++, OS...
24
by: Kevin | last post by:
Hey guys. I'm looking to get together some VB programmers on Yahoo messenger. I sit at a computer and program all day. I have about 3 or 4 people already, but it would be really cool to have a...
7
by: changs | last post by:
Hi, all I have a asm code, I suspect it sort of socket programming. Can anyone here give some instructions on how to determine the function or give the psudo-code in C? Thanks in advance! ...
3
by: iKiLL | last post by:
Hi all I am building an Windows Mobile 5 forms control in C#, for a Windows Mobile 5 application. I am using CF2.0 and SQL Mobile 2005. The control is a Questions and answer control.
4
by: Mr. X. | last post by:
Hello. I need some help, please. What can an employee ask (technical questions), if I am interviewed of Dot-net developer (also VB.NET and C#). (What are the most general questions, that I may...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.