473,594 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1695
al********@gmai l.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********@gma il.comwrote in message
news:11******** **************@ b75g2000hsg.goo glegroups.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********@gmai l.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_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."
-- 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
2829
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 Vainio http://www.students.tut.fi/~vainio24
4
2179
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 --price MARKET --repeats 20 etc However, I'd like to add a mode that will handle, say:
4
2318
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 deployment/distribution thing. I notice that the static library generates obj files and a Lib file. Could someone kindly explain how they relate to one another. Thanks very much
86
3889
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 not be smaller than short and long may not be smaller than int. They go on to say, Many implementations represent characters in 8 bits, type short in
2
2025
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
2504
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). It's not about a specific language, but about the qualities that would make up the title language (learnability, consistency, simplicity, power, enforcing good programming practices). I thought this might be of interest to some of you, and I...
669
25771
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
1
1944
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. Addison Wesley 1997. 3rd Edition. 910 pages. "The C++ Programming Language" by Bjarne Stroustrup is the classic C++
84
8542
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 criticism that needs to be appreciated always...???
0
7946
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8253
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
8009
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,...
1
5739
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
5411
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
3867
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1482
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.