473,387 Members | 1,495 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,387 software developers and data experts.

Difference between "library parts" of C99 and "language parts" of C99

Hello!

What is the difference between "library parts" of C99 and "language
parts" of C99.

see
http://groups.google.at/group/micros...2bada2bbdbce56

I know that "Dinkum Compleat Libraries" (http://www.dinkumware.com/)
support the "library parts" of C99 - this probably relates to the C99
library headers and the functionality they provide.?
Are the "language parts" of C99 perhaps things like "variable
declarations" in the middle of {}-blocks? See below...

/******** test.c *********/
#include <stdio.h>

int main( void )
{
printf("hello world\n");

char c = 5; //variable declaration
return 0;
}

What else might be included in the "language parts" of C99?
Thanks,
Albert

Mar 31 '07 #1
3 1683
al********@gmail.com wrote:
Hello!

What is the difference between "library parts" of C99 and "language
parts" of C99.
The language includes the libraries; perhaps you mean the syntax as
opposed to the libraries. Basically, anything supplied as a function or
macro will be found declared in a header and any supporting functions
will be found in a library.
see
http://groups.google.at/group/micros...2bada2bbdbce56
Plauger uses the terms "library bits" and "language bits", not "library
parts" and "language parts." He is writing informally; none of those
four terms has any defined meaning in C, although most users of C will
recognize that he is distinguishing between those parts of the language
specified in section 7 "Library" of the language standard from the
non-library parts defined in sections 1-6. The annexes A-J contain
supplemental information concerning all 7 sections of the language
specification.
>
I know that "Dinkum Compleat Libraries" (http://www.dinkumware.com/)
support the "library parts" of C99 - this probably relates to the C99
library headers and the functionality they provide.?
The headers and library functions defined by the C language
specification are what Dinkum supplies.

Are the "language parts" of C99 perhaps things like "variable
declarations" in the middle of {}-blocks? See below...
No doubt Plauger means by "language bits" everything not specified as
belonging in a library or associated header. Obviously, variables and
their declarations (no matter where they occur) are part of that.
>
/******** test.c *********/
#include <stdio.h>

int main( void )
{
printf("hello world\n");

char c = 5; //variable declaration
return 0;
}

What else might be included in the "language parts" of C99?
In your code, <stdio.hand printf() are defined as part of the library
in the language specification. Everything else is a non-library part of
the C programming language.
Mar 31 '07 #2
<al********@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
What is the difference between "library parts" of C99 and "language
parts" of C99.

see
http://groups.google.at/group/micros...2bada2bbdbce56

I know that "Dinkum Compleat Libraries" (http://www.dinkumware.com/)
support the "library parts" of C99 - this probably relates to the C99
library headers and the functionality they provide.?
Are the "language parts" of C99 perhaps things like "variable
declarations" in the middle of {}-blocks? See below...

/******** test.c *********/
#include <stdio.h>

int main( void )
{
printf("hello world\n");

char c = 5; //variable declaration
return 0;
}

What else might be included in the "language parts" of C99?
If the piece that translates source code to object has to do it,
it's language. If it can be done in library headers and linkable
libraries, it's library.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
Mar 31 '07 #3
al********@gmail.com writes:
What is the difference between "library parts" of C99 and "language
parts" of C99.
[...]

The latest draft of the C99 standard is available at
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf>.

Section 6 describes the language; section 7 describes the library.

(The term "language" can be ambiguous; it refers either to just the
part described in section 6, or to the entire language including
sections 6, 7, and all the rest.)

--
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"
Mar 31 '07 #4

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

Similar topics

49
by: Ville Vainio | last post by:
I don't know if you have seen this before, but here goes: http://text.userlinux.com/white_paper.html There is a jab at Python, though, mentioning that Ruby is more "refined". -- Ville...
4
by: Andrew E | last post by:
Hi all I've written a python program that adds orders into our order routing simulation system. It works well, and has a syntax along these lines: ./neworder --instrument NOKIA --size 23...
4
by: jr | last post by:
I am working in VC++ so this may be microsoft specific though I don't think so. Excuse me if it is. Assuming it isn't, can someone generally explain the purpose of having both - is it purely a...
86
by: Randy Yates | last post by:
In Harbison and Steele's text (fourth edition, p.111) it is stated, The C language does not specify the range of integers that the integral types will represent, except ot say that type int may...
2
by: santa19992000 | last post by:
Confusing th eword with "library", "shared library" and how to use these things in real C project, is there any small example I can take a look. Thanks.
9
by: John Salerno | last post by:
There is an article on oreilly.net's OnLamp site called "The World's Most Maintainable Programming Language" (http://www.oreillynet.com/onlamp/blog/2006/03/the_worlds_most_maintainable_p.html). ...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
by: Mike | last post by:
Hi, I'm auctioning the book "The C++ Programming Language" 3rd Ed. by Bjarne Stroustrup on ebay, details as follows or see eBay item number 250030480853. Softback. Condition : Good. Pub....
84
by: aarklon | last post by:
Hi all, I found an interesting article here:- http://en.wikipedia.org/wiki/Criticism_of_the_C_programming_language well what do you guys think of this article....??? Is it constructive...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.