Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 355 Bytes

File metadata and controls

8 lines (5 loc) · 355 Bytes

fpst

A C library to check if a string starts with a prefix from a potentially large set of candidates.

Nothing fancy, but I needed this in order to efficiently match DNS queries against a large set of blacklisted domains, and it might be useful to others.

Usage: see the fpst.h header file.