misc: Add ssh_strreplace()

Pair-Programmed-With: Sahana Prasad <sahana@redhat.com>
Signed-Off-by: Sahana Prasad <sahana@redhat.com>
Signed-Off-By: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-12-10 18:29:18 +01:00
parent 5317ebf0fc
commit 35216e7254
2 changed files with 51 additions and 0 deletions

View File

@@ -98,4 +98,5 @@ int ssh_quote_file_name(const char *file_name, char *buf, size_t buf_len);
int ssh_newline_vis(const char *string, char *buf, size_t buf_len);
int ssh_tmpname(char *template);
char *ssh_strreplace(char *src, const char *pattern, const char *repl);
#endif /* MISC_H_ */