AmendHub

jcs

/

detritus

/

amendments

/

util.h

Amendments on December 27, 2024

util: Add strcaseidx

When trying to case-insensitively match a string to a list of char
pointers, having to call into strcasecmp for every list entry and
start the indexing into the string over again every time is quite
expensive.
strcaseidx takes a string and a pointer to an array of char pointers
and walks the list and indexes the string only once, advancing
through the list as each next character matches or not. This
requires the list to be sorted.
jcs made amendment 67 about 1 year ago

Amendments on December 12, 2024

util: Disable MALLOC_DEBUG

jcs made amendment 53 about 1 year ago

Amendments on October 25, 2024

util: Add STR macro

jcs made amendment 11 about 1 year ago

Amendments on September 30, 2024

*: Initial import, part 2

jcs made amendment 2 about 1 year ago