reinit.c (259B)
1 /* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail> 2 * See LICENSE file for license details. 3 */ 4 #include "util.h" 5 6 7 void 8 reinit(Regex *r, char *regx) { 9 10 refree(r); 11 12 if(regx[0] != '\0') { 13 r->regex = estrdup(regx); 14 r->regc = regcomp(regx); 15 } 16 }