unclog/lib/regex_slim.h
2024-07-01 00:33:04 +02:00

8 lines
298 B
C

// 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);