mirror of
https://github.com/0intro/wmii
synced 2024-11-25 07:09:38 +03:00
17 lines
259 B
C
17 lines
259 B
C
/* 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);
|
|
}
|
|
}
|