473,662 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looking for good C source code

Hi all.
I'm looking for good C source code to study and be able to advance my C
programming skills. Do you recomend any open source project in particular
that in your opinion has good writen C code?
Thanks.
Nov 14 '05 #1
20 5126
The Linux Kernel.
www.kernel.org

The best free (as in free speech) C code you can get.

On Fri, 26 Dec 2003 20:31:43 +0000, Clark wrote:
Hi all.
I'm looking for good C source code to study and be able to advance my C
programming skills. Do you recomend any open source project in particular
that in your opinion has good writen C code?
Thanks.


Nov 14 '05 #2
stau wrote:
The Linux Kernel.
www.kernel.org

The best free (as in free speech) C code you can get.


I definitely had fun reading version 0.01 of the linux kernel. I
decided to read that version because I figured it'd be the easiest to
read and understand since it is a minimal kernel.

Aaron
--
/usr/bin/fortune says:
Taxes are not levied for the benefit of the taxed.

Nov 14 '05 #3
"Clark" <ja***********@ yahoo.com> wrote in
news:bs******** ****@ID-215001.news.uni-berlin.de on Fri 26 Dec 2003
01:31:43p:
Hi all.
I'm looking for good C source code to study and be able to advance my C
programming skills. Do you recomend any open source project in
particular that in your opinion has good writen C code?
Thanks.


This isn't really on-topic for this group. comp.programmin g would
probably be a better place for it. comp.lang.c only deals with Standard
C, not programming in general or languages other than Standard C.

In any case, the GNU Project has released some coding standards for
people to follow. I think they can be applied generally, in fact, and so
I will give you the link to the website where they are listed:

http://www.gnu.org/prep/standards_toc.html

Another thing for you to keep in mind is the difference between using a
specific language and programming in general.

Using a language is all about knowing syntax rules and taking advantage
of semantics and such like. In other words, it's not applicable to any
other language.

Programming in general deals with algorithm design and structuring of
both code and data and the theory of effective computability. In other
words, it is completely independent of any language.

Perhaps the most important lesson in programming style to take from that
distinction is to learn that structure and planning are the most
important elements of good style, and that they will show through well no
matter what language you use.

Nov 14 '05 #4
In article <pa************ *************** *@pretogal.pt>, st**@pretogal.p t
says...
The Linux Kernel.
www.kernel.org

The best free (as in free speech) C code you can get.


It's free, but it's not C.

The linux kernel uses a lot of gcc extensions that are not pure ISO
or ANSI standard C. That's not bad, it would be hard to write an OS
without doing so, but if your intent is to learn portable C, that's
probably not the place to start.

Sourceforge is a great reasource, try searching for ANSI and ISO and
reading project summaries for those claiming to be fully portable.

Also, several of the regular posters here have websites with
libraries and smaller code samples that are fully portable, try
trolling through some of the .sig lines.

--
Randy Howard
2reply remove FOOBAR

Nov 14 '05 #5
Clark wrote:
Hi all.
I'm looking for good C source code to study and be able to advance my C
programming skills. Do you recomend any open source project in particular
that in your opinion has good writen C code?

(I must disagree with August Derleth about the topicality of this question.
I can think of no better place to ask about good C source code than a good
C newsgroup!)
If you're looking for good C source code, look no further than comp.lang.c.
If you want to advance your C programming skills, you are already at the
right place. Read the group regularly, and (once you have worked out who
knows what they're talking about and who doesn't) you'll pick up a vast
number of useful tips on how to use the language correctly and skilfully.

You don't have to wait for discussions to happen, either, since Google has
archives for this newsgroup going back to - er, no, it even goes back
further than that.

A brief, non-exhaustive list of names worth looking out for (past and
present) - every one of these people is a C expert:

Martin Ambuhl
Christian Bau
Dann Corbit
Douglas Gwyn
Lawrence Kirby
Jack Klein
Ben Pfaff
P J Plauger
Dan Pop
"Noone Really"
Will Rose
Eric Sosman
Richard Stamp
Keith Thompson
Chris Torek
Stephan Wilms
Dik Winter

Like I said, it's non-exhaustive. But basically, if you focus on articles by
these people, you'll pick up a lot of good stuff. Then find out who agrees
with them (on the whole!), and you'll find your way to other clueful
articles.

It's not the best way to /learn/ C, by any means, but if you've already
"learned" C, this is a great way to find out what you got wrong and what
you missed.
--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #6
Richard Heathfield wrote:
[snip] A brief, non-exhaustive list of names worth looking out for (past and
present) - every one of these people is a C expert:

Martin Ambuhl
Christian Bau
Dann Corbit
Douglas Gwyn
Lawrence Kirby
Jack Klein
Ben Pfaff
P J Plauger
Dan Pop
"Noone Really"
Will Rose
Eric Sosman
Richard Stamp
Keith Thompson
Chris Torek
Stephan Wilms
Dik Winter

Like I said, it's non-exhaustive. But basically, if you focus on articles by
these people, you'll pick up a lot of good stuff. Then find out who agrees
with them (on the whole!), and you'll find your way to other clueful
articles.
This list is especially non-exhaustive in that it omits Mr. Heatfield
himself, of course.

A rather funny thought just occurred to me: what would happen if people
of this caliber got together to work on a real-life project? Seems that
a mediocre outcome is out of the question... Either the result would be
quite brilliant or a total deadlock, I think :-)
It's not the best way to /learn/ C, by any means, but if you've already
"learned" C, this is a great way to find out what you got wrong and what
you missed.


It certainly is.

Best regards, Sidney
Nov 14 '05 #7
On Sat, 27 Dec 2003 02:21:28 +0000, Aaron Walker wrote:
stau wrote:
The Linux Kernel.
www.kernel.org

The best free (as in free speech) C code you can get.


I definitely had fun reading version 0.01 of the linux kernel. I
decided to read that version because I figured it'd be the easiest to
read and understand since it is a minimal kernel.

Aaron


Its does have some bugs on the use of the C language, as Linus just
admited when argumenting against SCO dick corp.; like #define
someMacro(a, b) (a - b), in which the argument may be a complex
expression.
A newer version is probably better for study.
Nov 14 '05 #8
"Sidney Cadot" <si****@jigsaw. nl> wrote in message
news:bs******** **@news.tudelft .nl...
A rather funny thought just occurred to me: what would happen if people
of this caliber got together to work on a real-life project? Seems that
a mediocre outcome is out of the question... Either the result would be
quite brilliant or a total deadlock, I think :-)


I do agree that the people mentioned know their stuff very well, but you
need more than only coding and language skills to successfully complete a
big project.
Nov 14 '05 #9
"Servé Lau" <i@bleat.nospam .com> wrote in message
news:bs******** **@news4.tilbu1 .nb.home.nl...
"Sidney Cadot" <si****@jigsaw. nl> wrote in message
news:bs******** **@news.tudelft .nl...
A rather funny thought just occurred to me: what would happen if people
of this caliber got together to work on a real-life project? Seems that
a mediocre outcome is out of the question... Either the result would be
quite brilliant or a total deadlock, I think :-)


I do agree that the people mentioned know their stuff very well, but you
need more than only coding and language skills to successfully complete a
big project.


I'm quite sure the listed people would know quite a lot of other stuff too.
:-)

But more critically, a group considering a project that would actually
_need_
more than two (say) genuine C _experts_ should probably reconsider it's
choice
of programming language! ;)

In any case, many of the listed people _have_ colaborated on a real-life
project: "C Unleashed". Although, Francis Glassborow wasn't entirely
convinced of the merits of that project, even if he was satisfied with
the quality of production.

--
Peter
Nov 14 '05 #10

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

Similar topics

1
2443
by: Angie | last post by:
Hello, My name is Angela Mastrodonato. I'm a web designer who would like the assistance of a php programmer. Some of my clients have requested more dynamic web sites, and I am in the beginning phases of learning php. When it comes to common services, such as shopping carts, I have found ways to modify existing scripts. However, I have been getting requests for services that seem specific, and require a more customized approach than...
2
2585
by: Mike | last post by:
Hello, I'm looking to create a PHP script that will automatically generate an index/menu/list (whatever) based on the PDF files that are within a particular directory. I would like the script to be able to parse out the title, description, author(s), and date from the documents, and use that information to create the index. Any suggestions on how to do something like this?
9
2328
by: Sandeep Sharma | last post by:
For many years I have been following the convention of naming all class attributes with a leading underscore. This enables me to quickly identify the class attributes when I encounter them in the source code. Even the GoF book follows this convention, although it's true that the GoF book is not an authoritative source for coding guidelines. Recently a colleague remarked that using a leading underscore is a bad programming practice...
3
2130
by: Jack Klein | last post by:
I'm looking for opinions on a C technique I, and others, have used successfully in the past. While some people swear by, apparently others swear at it. Assume a part of a program too large to fit comfortably in a single source file, call it a "module". Let's call it "module A". Also assume for various reasons module A needs a private data store with static storage duration, accessible from files in more than one translation unit. ...
1
2576
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am looking for a robust solution for a major application. Almost every developer seems to come up with a completely different solution. While many of them are not bad, I really want a very good one. My database is SQL Server 2000 and I am using Visual...
13
3101
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those sorts of clients. Mine are all small businesses whose sites will never reach those sorts of scales. I deal with businesses whose sites get maybe a few hundred visitors per day (some not even that much) and get no more than ten orders per day....
5
4651
by: Alexey Smirnov | last post by:
Can someone suggest me a good light-weight free Wiki-engine? A source on C# is a plus :-) Any is help appreciated.
6
1313
by: Meglio | last post by:
Looking for very strong PHP developer to participate in some open source project. Requirements: - Strong knowledge and good experience of PHP (especially ver. 5): OOP, Exception handling - Ability to write right and good comments in the code - Good MySQL knowledge - Understanding of gettext GNU library - some portfolio to show your experience and your level is welcome
16
5089
by: graham.keellings | last post by:
hi, I'm looking for an open source memory pool. It's for use on an embedded system, if that makes any difference. Something with garbage collection/defragmentation would be nice. It should have the ability to allocate different size chunks of memory not just a single size. It should error check for double free, etc. And it should be usable by a mixture of C and C++ subsystems. If I get that, I'm happy. Thank you very much.
0
8432
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
8344
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
7367
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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
4180
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
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
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
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
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.