wmii/lib/libstuff/util/reinit.c

17 lines
259 B
C
Raw Normal View History

2010-05-22 06:52:47 +04:00
/* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "util.h"
void
reinit(Regex *r, char *regx) {
refree(r);
if(regx[0] != '\0') {
r->regex = estrdup(regx);
r->regc = regcomp(regx);
}
}