diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-24 16:43:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:12 -0500 |
commit | 6b1c7d36f88b0c7cfdf16628d33512d4bacced88 (patch) | |
tree | a15f21185e7654045312978d9001fece25d1b9ed /source4/lib/util/util.h | |
parent | f2d64e1c45994e4b519454c071e90e0cd8240c8a (diff) | |
download | samba-6b1c7d36f88b0c7cfdf16628d33512d4bacced88.tar.gz samba-6b1c7d36f88b0c7cfdf16628d33512d4bacced88.tar.bz2 samba-6b1c7d36f88b0c7cfdf16628d33512d4bacced88.zip |
r25307: add string_sub_talloc.
(This used to be commit 96c1a24874289fdeddcac43d23c2d1214b9b6225)
Diffstat (limited to 'source4/lib/util/util.h')
-rw-r--r-- | source4/lib/util/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/util/util.h b/source4/lib/util/util.h index 68bf326d87..1960aa6196 100644 --- a/source4/lib/util/util.h +++ b/source4/lib/util/util.h @@ -383,6 +383,10 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_ **/ _PUBLIC_ void string_sub(char *s,const char *pattern, const char *insert, size_t len); + +_PUBLIC_ char *string_sub_talloc(TALLOC_CTX *mem_ctx, const char *s, + const char *pattern, const char *insert); + /** Similar to string_sub() but allows for any character to be substituted. Use with caution! |