From ed9974ba3f6353f7e2532bafa55a32ba01f41b4c Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Apr 2024 13:49:18 -0400 Subject: Add REPLACE_TRUNCATE_AFTER_MATCH mode to replace_text --- include/relocation.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/relocation.h') diff --git a/include/relocation.h b/include/relocation.h index b734433..924f00f 100644 --- a/include/relocation.h +++ b/include/relocation.h @@ -16,7 +16,9 @@ #endif #include -int replace_text(char *original, const char *target, const char *replacement); -int file_replace_text(const char* filename, const char* target, const char* replacement); +#define REPLACE_TRUNCATE_AFTER_MATCH 1 + +int replace_text(char *original, const char *target, const char *replacement, unsigned flags); +int file_replace_text(const char* filename, const char* target, const char* replacement, unsigned flags); #endif //OMC_RELOCATION_H -- cgit