glibc中的正则表达式处理
(1) regexec是否线程安全?这个函数是glibc中的,至于他是否是线程安全,我先搜了一下,好像没有人说。对于这种库函数最好小心使用,摸清底细先。看来只能到libc中寻找答案了,实现代码如下:intregexec (preg, string, nmatch, pmatch, eflags) const regex_t *__restrict preg; const char *__restrict string; size_t nmatch; regmatch_t pmatch


