unclog/lib/regex_slim.h

9 lines
298 B
C
Raw Normal View History

2024-06-30 21:50:52 +00:00
// Workaround for using regex in Zig.
// https://www.openmymind.net/Regular-Expressions-in-Zig/
// https://stackoverflow.com/questions/73086494/how-to-allocate-a-struct-of-incomplete-type-in-zig
#include <regex.h>
#include <stdlib.h>
regex_t* alloc_regex_t(void);
void free_regex_t(regex_t* ptr);