Main

Home
About me
Tutorials
Code
Blog

Projects

kexec-loader
NetPrinters
NetHalt
kbtrap

Code

Various small bits of code I've written, mostly released as public domain since licensing code like this is a waste of time.

Advanced string comparison function with support for wildcards.
Licensed to public domain, basic documentation included in the source.
This has been obsoleted by globcmp (see below).

VersionRelease dateFiles
1.232007-12-21 compare-1.23.c
compare-1.23.h
1.222007-11-06 compare-1.22.c
compare-1.22.h
1.212007-09-09 compare-1.21.c
compare-1.21.h
1.22007-08-23 compare-1.2.c
1.12007-06-11 compare-1.1.c

Function to read a list of devices from a /proc/bus/input/devices-like file, assumes format to match that of Linux 2.6.18 very closely, changes in the lines used by this code may cause segfaults as it doesn't really do any sanity checking.

Released as public domain, documentation is included in the source code.

VersionRelease dateFiles
1.02008-02-17 devices-1.0.c
devices-1.0.h

Simple trie implementation, written to see if I could make it work.
(It did, eventually...)

VersionRelease dateFiles
1.02008-03-18 trie-1.0.c
trie-1.0.h

Glob matching function, a full rewrite of str_compare() with a better algorithm

VersionRelease dateFiles
1.012008-11-11 globcmp-1.01.c
globcmp-1.01.h
1.02008-07-19 globcmp-1.0.c
globcmp-1.0.h