diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-26 16:43:03 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:55:46 -0400 |
commit | 9910a30f0c26b3180d46418abad760f86a253aa2 (patch) | |
tree | 6c5209b5decbdc4206a90dfb3120ebbe88525d65 /include | |
parent | 232763cb702e5b39ec5a051ec41582e42adaef59 (diff) | |
download | stasis-9910a30f0c26b3180d46418abad760f86a253aa2.tar.gz |
Fix replace_text*() functions
* Now return an error code
* Completely rewrote replace_text()
Diffstat (limited to 'include')
-rw-r--r-- | include/relocation.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <unistd.h> -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 |