aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorJason Woodward2007-09-05 04:26:29 +0000
committerJason Woodward2007-09-05 04:26:29 +0000
commitc62ffd1abc6723d16df0e3d8445efe1d77afcc26 (patch)
tree923e00911f69d5cab0905a25bc221166ff132294 /src/common.h
parentc6ad9c938df89430c5e1753565fcadb654dcef72 (diff)
downloadslapt-get-c62ffd1abc6723d16df0e3d8445efe1d77afcc26.tar.gz
added slapt_regex_extract_match()
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 79b425d..27d4a3d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -36,6 +36,8 @@ typedef struct {
FILE *slapt_open_file(const char *file_name,const char *mode);
slapt_regex_t *slapt_init_regex(const char *regex_string);
void slapt_execute_regex(slapt_regex_t *regex_t,const char *string);
+/* extract the string from the match, starts with 1 (not 0) */
+char *slapt_regex_extract_match(const slapt_regex_t *r, const char *src, const int i);
void slapt_free_regex(slapt_regex_t *regex_t);
void slapt_create_dir_structure(const char *dir_name);
/* generate an md5sum of filehandle */