c-snippets

Not logged in

Welcome!

This page is a Fossil source code repository for my collection of C snippets. It's not really a library, but a collection of (partially experimental) stuff. This site is mainly an experiment to try out the Fossil source control system. Fossil is still quite young and has a couple bugs and missing features, so don't expect everything on this site to work.

Code includes...

The code includes a small collection of relatively portable, mostly standlone pieces of C code for doing things like:

License

All of this code is released into the Public Domain.

Downloading this code

There are two options for downloading. The first is to log in as the anonymous use and follow the /leaves link. Then find the top-most entry and click that. From there, you can download a zip file containing the latest checked-in source code. Versions of Fossil older than 8 February 2008 will create a zip which unpacks to the current directory, so be sure to first create and 'cd' to the proper target directory before unzipping.

Optionally, you can use fossil:

~> fossil clone \
   http://anonymous:anonymous@fossil.wanderinghorse.net/repos/c-snippets/index.cgi \
   csnips.fsl

(All on one line.)

That will copy the repository to sigslot.fsl, which you can then open with:

~> mkdir csnips
~> cd csnips
~> fossil open ../csnips.fsl

That checks out the files under the current dir. A Makefile for GNU Make is included, and the snippets should be buildable on nearly any platform.

Contributing

If you are interesting in contributing to this code, there are several options: