No description
  • C 94%
  • CMake 6%
Find a file
Evan Burkey 2c539eadda
All checks were successful
test / test (push) Successful in 11s
ci
2026-04-03 13:54:31 -07:00
.forgejo/workflows ci 2026-04-03 13:54:31 -07:00
tests Switch to CTest with per-test executables and add GitHub Actions CI 2026-03-14 22:54:12 -07:00
.gitignore forgejo move 2026-04-03 13:52:16 -07:00
CMakeLists.txt Switch to CTest with per-test executables and add GitHub Actions CI 2026-03-14 22:54:12 -07:00
DOOM1.WAD init 2024-02-28 08:10:56 -08:00
README.md forgejo move 2026-04-03 13:52:16 -07:00
spitwad.c forgejo move 2026-04-03 13:52:16 -07:00
spitwad.h forgejo move 2026-04-03 13:52:16 -07:00

spitwad

A C library for reading, writing, and manipulating WAD files. The WAD format was created by id Software for DOOM and has since become a staple of game modding. spitwad treats WADs as a general-purpose archive format — use it for your DOOM clone, or package arbitrary data and send it over a network.

Quick Start

cmake -B build
cmake --build build
#include "spitwad.h"

struct WAD wad;
wad_init(&wad, PWAD);
wad_add_lump(&wad, "GREETING", (const unsigned char *)"hello", 5);
wad_write_file(&wad, "hello.wad");
wad_destroy(&wad);

Requirements

  • CMake 3.22+
  • C99 compiler
  • Any POSIX platform (Linux, macOS, BSD)

Documentation

Full reference documentation