Login
Whut?
Login

The Wanderinghorse.net Utilities ("whut") is a C99-compliant library with generic, app-agnostic utility code.

This is mostly stuff i end up dragging from tree to tree, consolidated in one place to simplify further dragging.

This tree is really only for my own use. It has no API stability guarantees.

Licenses: this tree amalgamates many years of code from disparate projects and has sources with a mix of licenses, including:

All licenses are permissive. It contains no virally-licensed code.

Canonical home: https://fossil.wanderinghorse.net/r/whut

Maintainer: Stephan Beal

Overview

The API provides the following core features:

Non-features:

Examples

See the as-yet-basic test app.

Amalgamation Build

This project's code is designed to be "amalgamated" into a two-file distribution, libwhut.h and libwhut.c, which provide the complete library. It can be downloaded from this project's main site or created from a checkout of the source tree:

$ ./configure
$ ./make-amalgamation.sh
# or:
$ ./make-amalgamation.sh -zip # also builds a zipped bundle

Sidebar: though that works from an out-of-tree build, the results will not be byte-for-byte identical with one created from a local checkout because its code comments will include full paths to the input files. Only code comments are affected.

That will result in the two files. To make use of them in another tree:

To add optional support:


  1. ^ https://crypto.stackexchange.com/questions/44141/what-is-hardened-sha-1-how-does-it-work-and-how-much-protection-does-it-offer
  2. ^ https://shattered.io/