From 9910a30f0c26b3180d46418abad760f86a253aa2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 26 Mar 2024 16:43:03 -0400 Subject: Fix replace_text*() functions * Now return an error code * Completely rewrote replace_text() --- include/relocation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/relocation.h') diff --git a/include/relocation.h b/include/relocation.h index ea9da9f..b734433 100644 --- a/include/relocation.h +++ b/include/relocation.h @@ -16,7 +16,7 @@ #endif #include -void replace_text(char *original, const char *target, const char *replacement); -void file_replace_text(const char* filename, const char* target, const char* replacement); +int replace_text(char *original, const char *target, const char *replacement); +int file_replace_text(const char* filename, const char* target, const char* replacement); #endif //OMC_RELOCATION_H -- cgit