util: add eregcomp: show descriptive error message on regcomp error
This commit is contained in:
5
util.h
5
util.h
@@ -1,4 +1,5 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <regex.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
#include "arg.h"
|
||||
@@ -34,6 +35,10 @@ size_t strlcat(char *, const char *, size_t);
|
||||
#undef strlcpy
|
||||
size_t strlcpy(char *, const char *, size_t);
|
||||
|
||||
/* regex */
|
||||
int enregcomp(int, regex_t *, const char *, int);
|
||||
int eregcomp(regex_t *, const char *, int);
|
||||
|
||||
/* misc */
|
||||
void enmasse(int, char **, int (*)(const char *, const char *));
|
||||
void fnck(const char *, const char *, int (*)(const char *, const char *));
|
||||
|
Reference in New Issue
Block a user