A minimal Bible format designed for the C language.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Daniel 244feb9c53 typo 5 days ago
.gitignore Clean up C files, and implement BibleC index file compiling. Also cleaned up JS file a bit. 11 months ago
LICENSE Add test 1 month ago
Makefile Readme wording 3 weeks ago
README.md Readme wording 3 weeks ago
biblec.c Case insensitive book finding, fix some bound checks 2 weeks ago
biblec.h Add some BIBLEC_ 3 weeks ago
compiler.js Readme wording 3 weeks ago
test.c typo 5 days ago

README.md

BibleC

A minimal Bible format in C.

Design:

  1. First calculates the line of Bible verse, then grabs it (very fast)
  2. Support for more than 1 verse (John 3 16-18)
  3. Support for getting entire chapter
  4. Load an BibleC index file or C header file
  5. 1 C file, 1 header file, no complex build system needed
  6. No memory allocations

Usage:

See Makefile

API:

See test.c for a full example.

struct Biblec_reader reader;
int tryReader = biblec_new(
	&reader,
	&myTranslation,
	"John",
	3,
	16,
	20
);

while (biblec_next(reader)) {
	puts(reader.result);
}