10 C-Language open source project codes that are most worth learning to read

Source: Internet
Author: User

Reading good code is a quick way to improve the development of the developer ...

1. Webbench

        Webbench is a in linux fork () Span style= "font-family:arial" >url 3 million concurrent connections to test the load capacity of the Web site. webbench use c language writing ,  code is too concise, source add up to 600 line. Download Link: http://home.tiscali.cz/~cz210552/webbench.html

2. TINYHTTPD

TINYHTTPD is an ultra-lightweight Http Server, developed in C language, with all code only 502 Lines ( including comments ) , comes with a simple Client , you can read this code to understand a Http Server the essence. Download Link:http://sourceforge.net/projects/tinyhttpd/

3. Cjson

Cjson is a JSON codec in the C language , very lightweight,C files only many lines, the speed is also very ideal.

Cjson also has several weaknesses, although the function is not very powerful, but the cjson small body and speed is the most commendable. Its code is very well maintained, the structure is easy to understand and can be learned as a very good C language project. Project Home :http://sourceforge.net/projects/cjson/

4. Cmockery

Cmockery is a lightweight framework that Google publishes for C unit Testing. It is small, has no dependencies on other open source packages, and is less intrusive to the code being tested. The source code line for Cmockery is less than 3K. Download Link:http://code.google.com/p/cmockery/downloads/list

5. Libev

Libev is an open source event-driven library based on epoll,kqueue and other OS -provided infrastructure. Known for its efficiency, it can unify IO events, timers, and signals to be processed in a single set of event-handling frameworks. Based on the Reactor mode, the efficiency is high and the code is streamlined (4.15 version 8000 multiple lines), is a great resource for learning event-driven programming. Download Link:http://software.schmorp.de/pkg/libev.html

6. Memcached

Memcached is a high-performance distributed memory object caching system for dynamic Web applications to mitigate database load. It provides the speed of a dynamic database-driven Web site by caching data and objects in memory to reduce the number of times the database is read. Memcached is based on a hashmap that stores key / value pairs . Memcached-1.4.7 's code volume is acceptable, only about 10K lines. :http://memcached.org/

7. Lua

Lua was invented by Brazilians and can be easily compiled on platforms that support the ANSI C compiler. Lua 's code size is small enough to5.1.4 just 1.5W lines, minus blank lines and comments estimated to 1W line. :http://www.lua.org/

8. SQLite

SQLite is an open-source, embedded relational database that implements a self-contained, 0 configuration, transactional SQL database engine. It is characterized by its high portability, ease of use, compact structure, high efficiency and reliability. Small enough, roughly 3 million lines C Code,250K. :http://www.sqlite.org/

9. UNIX V6

UNIX V6 Kernel source code includes device drivers, including about 1 million lines, this number of source code, the beginner is able to fully understand. There is a claim that a person can understand the code limit of 1 million lines,UNIX V6 Kernel source code in terms of the number is right within this range.

On the other hand, recent operating systems, such as Linux 's latest version of the kernel source code, are said to exceed the million line. Even if you are not a beginner, it is virtually impossible to fully understand the entire code. :http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6

Ten. NETBSD

NetBSD is a free, highly-ported unix-like operating system that is the most current portable platform operating system and can be executed on many platforms, from 64bit Alpha servers to handheld devices and embedded devices. the slogan for the NetBSD program is: "ofcourse it runs NetBSD". Its simple design, code specification, and many advanced features make it highly acclaimed in the industry and academia. Due to its concise design and advanced features, it has excellent performance in both production and research, and it also has a complete source code supported by the user. Many programs can be easily obtained by NetBSD Packages Collection . :http://www.netbsd.org/

The most interesting Android APK encryption technology for developers:http://www.ijiami.cn/appprotect_mobile_games


10 C-Language open source project codes that are most worth learning to read

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.