473,748 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloadable standards file?

I previously had asked if there was an online standards file so I could
read that and answer my own questions without posting here and getting
flamed for not having done my homework.

I was pointed to a file called n1124.pdf which turns out to be a C99
standard. It appears that quoting from that standard makes a lot of
people say "but C99 isn't widely supported, so C90 is what you ought to do."

Is there a C90 file I can download for free and cross reference with my
C99 one?

I have seen the FAQ 11.2 that says it's available for purchase. Given
that the C99/N1124.PDF appeared to be free from
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf, I was hoping
that there was at least a "good enough" C90 one also for free.

(Aside: if the consensus is to reject the new standard, why should one
be created? Do the people who say to use C90 really think it's better to
lock C forever to that? If my compiler is C99, shouldn't I be encouraged
to conform to that standard?)
Dec 14 '06 #1
53 2896
Jim Cook wrote:
I previously had asked if there was an online standards file so I could
read that and answer my own questions without posting here and getting
flamed for not having done my homework.

I was pointed to a file called n1124.pdf which turns out to be a C99
standard. It appears that quoting from that standard makes a lot of
people say "but C99 isn't widely supported, so C90 is what you ought to do."

Is there a C90 file I can download for free and cross reference with my
C99 one?
A quick search gives me

http://web.archive.org/web/200502070...c89-draft.html

as one possibility.

Note that n1124 is a post-C99 draft, not official C99. Similarly, there
is no official C90 freely available.
I have seen the FAQ 11.2 that says it's available for purchase. Given
that the C99/N1124.PDF appeared to be free from
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf, I was hoping
that there was at least a "good enough" C90 one also for free.

(Aside: if the consensus is to reject the new standard, why should one
be created? Do the people who say to use C90 really think it's better to
lock C forever to that? If my compiler is C99, shouldn't I be encouraged
to conform to that standard?)
It depends on how portable you want your code to be. Personally, I have
no problem with people using the common subset of C99 and what their
compiler supports. If anyone wants to compile that code with a
different compiler, and it rejects it because it doesn't support enough
of C99, it's the compiler that's at fault, not the code. Others prefer
to be able to compile their code on any platform with any conforming
compiler and write in the common subset of C90 and C99. What's best for
you is for you to decide.

Dec 14 '06 #2
Jim Cook a écrit :
I previously had asked if there was an online standards file so I could
read that and answer my own questions without posting here and getting
flamed for not having done my homework.

I was pointed to a file called n1124.pdf which turns out to be a C99
standard. It appears that quoting from that standard makes a lot of
people say "but C99 isn't widely supported, so C90 is what you ought to
do."

Is there a C90 file I can download for free and cross reference with my
C99 one?

I have seen the FAQ 11.2 that says it's available for purchase. Given
that the C99/N1124.PDF appeared to be free from
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf, I was hoping
that there was at least a "good enough" C90 one also for free.

(Aside: if the consensus is to reject the new standard, why should one
be created? Do the people who say to use C90 really think it's better to
lock C forever to that? If my compiler is C99, shouldn't I be encouraged
to conform to that standard?)
The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

There is a group of people here that think that C should be as
backward looking as possible, they reject C99 want to come to 1989
and maybe even earlier.

Who cares?

The current standard is C99.

That document (n1124.pdf) is OK for personal use, but maybe you
should get the real standard (around 20 dollars) from ANSI,
or get the book "The C standard" (Wiley).

You can get it here:
http://www.amazon.com/Standard-Incor...e=UTF8&s=books

That book is more expensive than the PDF of the standard from ANSI (48
dollars).

Dec 14 '06 #3

"jacob navia" <ja***@jacob.re mcomp.frwrote in message
news:45******** *************** @news.orange.fr ...
Jim Cook a écrit :
>I previously had asked if there was an online standards file so I could
read that and answer my own questions without posting here and getting
flamed for not having done my homework.

I was pointed to a file called n1124.pdf which turns out to be a C99
standard. It appears that quoting from that standard makes a lot of
people say "but C99 isn't widely supported, so C90 is what you ought to
do."

Is there a C90 file I can download for free and cross reference with my
C99 one?

I have seen the FAQ 11.2 that says it's available for purchase. Given
that the C99/N1124.PDF appeared to be free from
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf, I was hoping
that there was at least a "good enough" C90 one also for free.

(Aside: if the consensus is to reject the new standard, why should one be
created? Do the people who say to use C90 really think it's better to
lock C forever to that? If my compiler is C99, shouldn't I be encouraged
to conform to that standard?)

The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

There is a group of people here that think that C should be as
backward looking as possible, they reject C99 want to come to 1989
and maybe even earlier.

Who cares?

The current standard is C99.

That document (n1124.pdf) is OK for personal use, but maybe you
should get the real standard (around 20 dollars) from ANSI,
or get the book "The C standard" (Wiley).

You can get it here:
http://www.amazon.com/Standard-Incor...e=UTF8&s=books

That book is more expensive than the PDF of the standard from ANSI (48
dollars).

Dec 14 '06 #4
In article <45************ ***********@new s.orange.fr>,
jacob navia <ja***@jacob.re mcomp.frwrote:
>The people that told you that standard C is "rejected" here are
speaking for themselves. The current standard is C99, and that
standard makes older standards obsolete.
Surprisingly, ISO agrees:

This second edition cancels and replaces the first edition,
ISO/IEC9899:1990 [...]

So C90 is no longer an ISO standard, and therefore off-topic.

-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Dec 14 '06 #5
On Thu, 14 Dec 2006 18:48:22 +0100, jacob navia wrote:
>The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.
Older standards are not 'obsolate' (whatever that exactly means).
Standards are not laws, they have no legislative power.
>Who cares?
The current standard is C99.
The _latest_ C starndard is C99. I guess C90 is currently used by the
majority of C programmers.

Best regards,
Roland Pibinger
Dec 14 '06 #6
"Roland Pibinger" <rp*****@yahoo. comwrote in message
news:45******** *******@news.ut anet.at...
On Thu, 14 Dec 2006 18:48:22 +0100, jacob navia wrote:
>>The people that told you that standard C is "rejected" here are
speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

Older standards are not 'obsolate' (whatever that exactly means).
Standards are not laws, they have no legislative power.
Many ISO standards are enforced by laws in various jurisdictions. Not
the C one, thankfully, but many standards have a lot of de facto power
even when they doesn't have de jure power. For example, just try
connecting to the Internet without comforming to RFC 791.
>>Who cares?
The current standard is C99.

The _latest_ C starndard is C99. I guess C90 is currently used by the
majority of C programmers.
Hogwash. The majority of C programmers use either Microsoft C or
GNU/POSIX C, not ISO C.

Intel couldn't even give away copies of ICC until they implemented all
the Microsoft and GNU extensions (and they're still having trouble,
since ICC produces code that deliberately performs worse on AMD CPUs).

S

--
Stephen Sprunk "God does not play dice." --Albert Einstein
CCIE #3723 "God is an inveterate gambler, and He throws the
K5SSS dice at every possible opportunity." --Stephen Hawking
--
Posted via a free Usenet account from http://www.teranews.com

Dec 14 '06 #7
jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

There is a group of people here that think that C should be as
backward looking as possible, they reject C99 want to come to 1989
and maybe even earlier.

Who cares?

The current standard is C99.
[...]

Unfortunately, that's not realistic.

It is a fact that most C compilers implement the (officially obsolete)
C90 standard. It is also a fact, unfortunately, that most C compilers
do *not* yet fully implement the (now official) C99 standard.

I will note that jacob's own lcc-win32 compiler fails to implement
some features of C99. You can write conforming C99 code all you like,
but if you happen to use those features, lcc-win32 will reject it, as
will most other C compilers that you're likely to able to use. If you
want to write conforming C code as an academic exercise, feel free to
do so. If you happen to have one of the few implementations that
fully implements the C99 standard, and you're not concerned with
portability to other implementations , that's great. If you want to be
able to compile your code on as many systems as possible, I'm afraid
you're going to avoid those features of C99 that are not already in
C90.

Few, if any, posters here have said that the C language *should* be
restricted to the C90 standard. That is a distortion on jacob's part;
I can only assume that it's a deliberate one.

Many of us, myself included, have simply acknowledged the reality that
code that uses C99 features *is not portable*. Ignoring that fact is
foolish. I look forward eagerly to the day when all C implementations
(gcc, lcc-win32, Microsoft, etc.) fully support C99, but there is no
virtue in pretending that that day has already arrived. The only way
that's going to happen is if the *implementers* make it happen; as
programmers, there's not a whole lot we can do about it (other than
applying whatever pressure we can on the implementers).

Note that C99 is very nearly a superset of C90. If you write code in
the common subset of the two versions of the language (that basically
means writing conforming C90 code while avoiding the new C99
keywords), then you'll have code that is valid C99, and that any
future compiler, whether it conforms to C99 or not, will be able to
handle.

jacob, if you believe that C90 is "obsolete", why does your own
lcc-win32 compiler not fully support the current standard, seven years
after it was issued? I understand that it's a lot of work, and I'm
honestly not criticizing you for not having done it yet. But given
that fact, I'm bewildered by your insistence on ignoring C90.

C90 is *officially* obsolete, according to ISO. C99, and only C99, is
currently the *official* C standard, according to ISO. I truly wish
that those offical statements were better reflected in reality, but
they are not.

--
Keith Thompson (The_Other_Keit h) 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.
Dec 14 '06 #8
2006-12-14 <el**********@p c-news.cogsci.ed. ac.uk>,
Richard Tobin wrote:
In article <45************ ***********@new s.orange.fr>,
jacob navia <ja***@jacob.re mcomp.frwrote:
>>The people that told you that standard C is "rejected" here are
speaking for themselves. The current standard is C99, and that
standard makes older standards obsolete.

Surprisingly, ISO agrees:

This second edition cancels and replaces the first edition,
ISO/IEC9899:1990 [...]

So C90 is no longer an ISO standard, and therefore off-topic.
I thought the consensus was that all present and past C standards [and
with K&R1 counting as a standard] were on-topic.
-- Richard
Dec 15 '06 #9
2006-12-14 <45************ ***********@fre e.teranews.com> ,
Stephen Sprunk wrote:
"Roland Pibinger" <rp*****@yahoo. comwrote in message
news:45******** *******@news.ut anet.at...
>On Thu, 14 Dec 2006 18:48:22 +0100, jacob navia wrote:
>>>The people that told you that standard C is "rejected" here are
speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

Older standards are not 'obsolate' (whatever that exactly means).
Standards are not laws, they have no legislative power.

Many ISO standards are enforced by laws in various jurisdictions. Not
the C one, thankfully, but many standards have a lot of de facto power
even when they doesn't have de jure power. For example, just try
connecting to the Internet without comforming to RFC 791.
In a lot of cases, some of it is a question of just _how_ non-conformant.

For example:
} Time to Live: 8 bits
} This field indicates the maximum time the datagram is allowed to
} remain in the internet system. If this field contains the value
} zero, then the datagram must be destroyed.

Now, if, say, I let every fifth packet through without decrementing it
or destroying it if it's reached zero, I'm not going to run into any
immediate problems in terms of getting booted off by machines, and it
may take a while for any humans to notice the problem.

Note that RFCs aren't generally standards. Now, as it happens, RFC 791
is also STD 5.
Dec 15 '06 #10

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

Similar topics

4
2065
by: Boniface Frederic | last post by:
Hello, I want to set some files downloadable only by members with login and password. I use session to protect my .html and .php files, but I would like to know how to protect .zip files. The .zip files are in a folder protected with a .htaccess file with the members data as password file. When a member is already connected and click on a download link, a connect
3
2213
by: JJ | last post by:
Hi, I am writing a cart in ASP selling downloadable files. The files are stored on remote locations i.e. http://www.thisfilestore.com/file1.zip And have different extensions, i.e. they are not all zip files. I would like to write a script which cann be called which will allow the download of the file, without giving away the url. Any Ideas/examples welcome!
9
2215
by: Xah Lee | last post by:
is the Microsoft javascript doc downloadable? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsoriJScript.asp or, is there some other downloadable complete javascript ref for offline reading? Xah xah@xahlee.org ∑ http://xahlee.org/
144
6919
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this initiative. Typically I find that coding standards are written by some guy in the company who has a way of coding that he likes and then tries to force everybody else to write code the way he likes it, not for any rational reason, but simply for the...
2
1309
by: TJS | last post by:
is there a downloadable chm help file for asp.net ?
3
1693
by: Hongbo | last post by:
Hi, We have a web site which needs user to login. After login, there are some files available for download on some pages. A typical link of such file is like this one: https://www.ourdomain.com/docs/contracts/c_02102006.pdf I noticed that any one could get this file if the person knows this link regardless if this person has logged in or not. Is there a way to prevent people who do not login to reach such downloadable files? Thank...
2
2040
by: gen_tricomi | last post by:
THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE I write here to make a request on behalf of all the programmers on earth who have been or are intending to use the Google web search API for either research purposes or for the development of real world applications, that Google make their indexes downloadable. Currently application programmers using the Google web search API are
4
1566
by: Jim Aikin | last post by:
I'd like to learn JavaScript while sitting in my easy chair with my laptop on my lap. Option 1: Buy a wireless router so I can access the plethora of online- only tutorials from anywhere in the house. Option 2: Buy a book and try to figure out how to read a book with one hand while using the laptop with the other. Option 3: Find a good downloadable tutorial (either PDF or a bundle of
0
8994
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9555
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9250
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.