#ifndef _STRUCTDEF_H #define _STRUCTDEF_H typedef struct { char* match_regex; int match_cflags; int replace_group; //if no regex groups (()), should be 0 char* replace_with; } ct_match; typedef struct { char* line_str; //pointer to first char in string int need_free; //tracks if buffer is on the stack or in heap } ct_line; #endif