Skip to content

Latest commit

 

History

History
3794 lines (3794 loc) · 79.5 KB

awesome-c.md

File metadata and controls

3794 lines (3794 loc) · 79.5 KB

awesome-c Awesome

A curated list of C good stuff. This list contains only free software for code, and sellers who aren't evil for physical resources.

This is released under the GNU Free Documentation License - its text is provided in the LICENSE file.

This list was previously maintained by @kozross . He decided to switch the list to a new platform , so I've decided to fork it so we could keep it on GitHub.

Your contributions are highly welcome.

For more awesome lists, see awesome .

Contents

Contents

Build Systems

These are tools to automate the building and testing of projects in C.

  • aimake - A build tool designed to avoid complex configurations. GNU GPL3 or later.
  • Autoconf - An extensible package of M4 macros that produce shell scripts to automatically configure software source code packages. Part of the Autotools. GNU GPL3 or later.
  • Automake - A tool for automatically generating Makefile.in files compliant with the GNU Coding Standards. Requires the use of Autoconf. Part of the Autotools. GNU GPL3 or later.
  • Jam - A build system, designed to be easier than make. Understands C build rules implicitly. Jam License .
  • Libtool - A generic library support script. Part of the Autotools. GNU GPL3 or later.
  • Meson - An extremely fast, user-friendly build system. Based on Ninja. Apache2.0 .

Compilers

Crypto

Database

This lists databases and data stores with C APIs.

Deep Learning

  • Darknet - An open source neural network framework written in C and CUDA. It is fast, easy to install, and supports CPU and GPU computation.

Documentation Generation

  • Cxref - Generates documentation of C programs in either LaTeX, HTML, RTF or SGML. GNU GPL2.1 only.
  • DocOnce - A modestly-tagged markup language that can be used to generate a range of formats. 3-clause BSD .
  • Doxygen - The de-facto standard tool for generating C documentation from annotated sources. Can generate a large range of formats. GNU GPL2.1 only.
  • GTK-Doc - A tool for generating C documentation from annotated sources. Has support for the Autotools. GNU GPL2.1 only (code), GNU FDL1.1 only.

Editors

These are specifically fancier, IDE-type editors. If you want a programmer's text editor, look elsewhere. Besides, whatever choice you make most likely supports C anyway.

Environments

This is a list of technologies designed to bring Windows into the 21st century with respect to support for C.

Frameworks

This section has big libraries that provide data structures and other stuff you expect of a 'modern' standard library.

  • APR - Apache Portable Runtime; another library of cross-platform utility functions. Apache2.0 .
  • C Algorithms - A collection of common algorithms and data structures for C. ISC . ★ 508, pushed 142 days ago
  • CPL - The Common Pipeline Library; a set of libraries designed to be a comprehensive, efficient and robust software toolkit. GNU GPL2.1 only.
  • EFL - A large collection of useful data structures and functions. Various licenses, all free.
  • GLib - A library of utility functions and structures, designed to be portable, efficient and powerful. GNU LGPL2.1 only.
  • GIO - A modern and easy-to-use VFS API. GNU LGPL2.1 only.
  • GObject - An object-oriented system and object model for C. GNU LGPL2.1 only.
  • libnih - A lightweight library of C functions and structures. GNU GPL2.1 only. ★ 26, pushed 1001 days ago
  • libU - A small library of basic utilities, including memory allocation, string manipulation and logging. 3-clause BSD .
  • PBL - A large library of utilities, featuring data structures, among other things. GNU LGPL2.1 or later (library), GNU GPL2.1 or later (test code).
  • qlibc - A simple and powerful C library, designed as a replacement for GLib while focusing on being small and light. qLib license (similar to FreeBSD ). ★ 181, pushed 263 days ago
  • stb - A range of single-file libraries for C. Public domain. ★ 3498, pushed 129 days ago

Game Programming

Engines

These are provided as examples of C game programming code.

Resources

These are libraries of all sorts that are useful for game programming.

  • Allegro - A cross-platform, video game development and multimedia library. zlib .
  • Chipmunk2D - A fast and lightweight 2D game physics library. Expat . ★ 807, pushed 160 days ago
  • CSFML - A binding for SFML in C. zlib .
  • FreeGLUT - An alternative to the OpenGL Utility Toolkit. Allows the creation and management of windows with OpenGL contexts. X11 . ★ 118, pushed 197 days ago
  • GLFW - A multi-platform library for creating windows with OpenGL contexts. zlib .
  • libao - A cross-platform audio library with a wide variety of outputs. GNU GPL2.1 or later. ★ 3, pushed 1170 days ago
  • RetroArch - The reference frontend for libretro . GNU GPL3 only. ★ 1082, pushed 126 days ago
  • SDL - A cross-platform library designed to provide low-level access to audio, keyboard, mouse, joystick and graphics hardware via OpenGL. zlib .
  • SDL2 - A a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL. This is the most current version. zlib

Generic Programming

  • klib - Small and lightweight implementations of common algorithms and data structures. Expat . ★ 1364, pushed 197 days ago

Graphics

Graphical User Interface

These are specifically widget toolkits .

Image Processing

JSON

Learning, Reference and Tutorials

This is a list of resources for learning C programming in general, or something useful relating to C programming.

Online

Reference

Beginner

Intermediate

Advanced

Self-study courses

Physical

Reference

Beginner

Intermediate

Advanced

Multimedia

Networking and Internet

Web Frameworks

Numerical

  • apophenia - A library for statistical and scientific computing. GNU GPL2.1 only. ★ 90, pushed 132 days ago
  • ATLAS - Automatically Tuned Linear Algebra Software. 3-clause BSD .
  • BLAS - Basic Linear Algebra Subprograms; a set of routines that provide vector and matrix operations. BLAS license
  • Cuba - A library for multidimensional numerical integration. GNU LGPLv3 only.
  • FFTW - The Fastest Fourier Transform in the West; a highly-optimized fast Fourier transform routine. GNU GPL2.1 or later.
  • FLINT - Fast Library for Number Theory; a library supporting arithmetic with numbers, polynomials, power series and matrices, among others. GNU GPL2.1 or later.
  • GLPK - GNU Linear Programming Kit; a package designed for solving large-scale linear programming, mixed integer programming and other related problems. GNU GPL3 or later.
  • GMP - GNU Multple Precision Arithmetic Library; a library for arbitrary-precision arithmetic. Dual-licensed GNU GPL2.1 only and GNU LGPLv3 only.
  • GNU MPC - A library for complex number arithmetic. GNU LGPL3 or later.
  • GNU MPFR - A library for arbitrary-precision floating-point arithmetic. GNU LGPL3 or later (most recent versions), GNU LGPL2.1 or later (until version 2.4.x).
  • GNU MPRIA - A portable mathematics library for multi-precision rational interval arithmetic. GNU GPL3 or later.
  • GSL - The GNU Scientific Library; a sophisticated numerical library. GNU GPL3 only.
  • KISS FFT - A very simple fast Fourier transform library. 3-clause BSD .
  • LAPACKE - A C interface to LAPACK . 3-clause BSD .
  • PARI/GP - A computer algebra system for number theory; includes a compiler to C. GNU GPL2.1 or later.
  • PETSc - A suite of data structures and routines for scalable parallel solution of scientific applications modelled by partial differential equations. FreeBSD .
  • SLEPc - A software library for the solution of large, sparse eigenvalue problems on parallel computers. GNU LGPL3 only.
  • Yeppp! - Very fast, SIMD-optimized mathematical library. 3-clause BSD .

Parallel Programming

  • cchan - A small library for channel constructs for inter-thread communication. Public domain.
  • ck - Concurrency primitives, safe memory reclamation mechanisms and non-blocking data structures. FreeBSD . ★ 887, pushed 171 days ago
  • mill - Go-style concurrency in C. X11 .
  • MPICH - Another implementation of MPI. MPICH licence .
  • OpenMP - A set of C pragmas designed to allow for easy parallelization of code. Standard (licensing not applicable).
  • OpenMPI - A message passing interface implementation. 3-clause BSD . ★ 171, pushed 125 days ago
  • PETSc - A suite of data structures and routines for scalable parallel solution of scientific applications modelled by partial differential equations. FreeBSD .
  • pth - A portable implementation for non-preemptive priority-based scheduling for multiple threads of execution. GNU GPL3 or later.
  • pthreads - The POSIX thread library. Standard (no license applicable).
  • SLEPc - A software library for the solution of large, sparse eigenvalue problems on parallel computers. GNU LGPL3 only.
  • TinyCThread - A portable, small implementation of the C11 threads API. zlib .

Regex

"Some people, when confronted with a problem, think 'I know, I'll use regular expressions'. Now they have two problems." - Jamie Zawinski.

  • PCRE - An implementation of regexes identical to that of Perl 5. 3-clause BSD .
  • SLRE - Super Light Regular Expression library; a very small implementation of a subset of Perl regex syntax. GNU GPL2.1 only. ★ 269, pushed 165 days ago
  • TRE - A POSIX-compliant, feature-full regex library. FreeBSD .

Serialization

  • c-capnproto - An implementation of the Cap'n Proto serialization protocol. Expat . ★ 51, pushed 131 days ago
  • cmp - An implementation of the MessagePack serialization protocol. Expat . ★ 102, pushed 146 days ago
  • libavro - A C implementation of the Avro data serialization system. Apache2.0 .
  • mpack - Another implementation of the MessagePack serialization protocol. Expat . ★ 34, pushed 127 days ago
  • protobuf-c - An implementation of Google Protocol Buffer in C. FreeBSD . ★ 461, pushed 126 days ago
  • xdr - External Data Representation; a standard for data serialization. Standard (no license applicable).

Source Code Collections

This contains collections of small source code. If you want something big and integrated, check the Frameworks section.

  • CCAN - Modelled after Perl's CPAN, this is a big collection of C code that does stuff. The full list is here . Various licenses (all free software).
  • clib - Something of a package manager for C. Comes with a bunch of libraries of its own . Expat . ★ 2051, pushed 153 days ago
  • gnulib - A collection of common GNU code. Various licenses, all free.
  • libdjb - A collection of libraries doing various things. (Apparently) public domain.

Standard Libraries

This contains standard C libraries.

  • Bionic - Google's C standard library, developed for Android. 3-clause BSD . ★ 252, pushed 126 days ago
  • dietlibc - A C standard library designed for the smallest possible binaries. GNU GPL2.1 only.
  • glibc - The GNU C Library; an implementation of the C standard library. GNU LGPL2.1 only.
  • musl - A standard C library, compatible with POSIX 2008 and C11. Designed for static linking. Expat .

String Manipulation

Testing

Text Editor Extensions

While practically any decent programmer's text editor supports C, there are some extensions that make it more pleasant. This is categorized by editor.

Emacs

  • CEDET - Collection of Emacs Development Environment Tools; designed to provide IDE-like features to Emacs. Built-in. GNU GPL3 or later.
  • Flycheck - Modern syntax checking. For C, it can use either GCC or Clang as a back-end. GNU GPL3 or later. ★ 989, pushed 128 days ago
  • Yasnippet - A template system, with C templates for common code snippets. GNU GPL3 or later. ★ 1223, pushed 126 days ago

Vim

Tools

This is a list of useful programs to help you write and debug C code which are not editors, libraries or compilers.

  • Artistic Style - A fast and small automatic source code formatter that supports C. GNU LGPL3 only.
  • address-sanitizer - A fast memory error detector. Apache2.0 . ★ 547, pushed 144 days ago
  • biicode - A modern dependency manager for C. Expat .
  • c - Compile and execute C "scripts" in one go on the command line. Also has shebang support. Expat . ★ 1345, pushed 210 days ago
  • c99sh - Run C files using hash-bang. FreeBSD . ★ 28, pushed 351 days ago
  • CBMC - C Bounded Model Checker; a tool for verification of array bounds, pointer safety and user-specified assertions. Original BSD .
  • cdecl - An online service to translate C declarations into English and vice versa. Public domain. ★ 3378, pushed 127 days ago
  • cinclude2dot - Graphs include dependencies in a C project using Graphviz. Any GNU GPL version (due to underspecification in the file).
  • Complexity - A tool for measuring the complexity of C source code. GNU GPL3 or later.
  • CScout - a source code analyzer and refactoring browser for collections of C programs. GNU GPL3 only.
  • DDD - A graphical front-end for a range of command-line debuggers. GNU GPL3 or later.
  • GDB - The GNU Project debugger; a debugger for C. GNU GPL3 or later.
  • Glade - A RAD tool to enable quick development of GTK+ GUIs. GNU GPL2.1 only.
  • GMSL - GNU Make Standard Library; a collection of additional functionality for GNU Make. 3-clause BSD .
  • GNU Global - A source code tagging tool which works with C. GNU GPL3 only.
  • gprof - A performance analysis tool. Part of GNU binutils. GNU GPL3 or later.
  • Highlight - Converts source code to formatted text with nice highlighting. GNU GPL3 only.
  • include-what-you-use - Helps find unecessary inclusions and make suggestions for fixing them. Based on LLVM/Clang (and only works with it). NCSA . ★ 428, pushed 127 days ago
  • indent - Formats C source code automatically to make it easier to read. Also converts from one style of source to another. GNU GPLv3 or later.
  • Make - A tool which controls the generation of executables and other non-source files of a program. GNU GPL3 or later (link to the GNU implementation).
  • qo - A build system that works without a separate config file. Expat . ★ 229, pushed 285 days ago
  • rr - A debugger that records non-deterministic executions to allow for deterministic debugging. FreeBSD .
  • tup - A very fast, file-based, cross-platform build system. GNU GPL2.1 only.
  • unifdef - Removes #ifdef and #if directives with their delimited text without touching any other part of the file. 3-clause BSD and FreeBSD .
  • Valgrind - A range of dynamic analysis tools, including a leak checker. GNU GPL2.1 only.

Utilities

This is a 'catch-all' category for anything that doesn't fit well anywhere else.

XML

"XML is crap. Really. There are no excuses. XML is nasty to parse for humans, and it's a disaster to parse even for computers. There's just no reason for that horrible crap to exist." - Linus Torvalds