STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
relocation.h
Go to the documentation of this file.
1
4#ifndef STASIS_RELOCATION_H
5#define STASIS_RELOCATION_H
6
7#include "config.h"
8
9#include <stdio.h>
10#include <stdlib.h>
11#include <string.h>
12#if defined(STASIS_OS_DARWIN)
13#include <limits.h>
14# else
15#include <linux/limits.h>
16#endif
17#include <unistd.h>
18
19#define REPLACE_TRUNCATE_AFTER_MATCH 1
20
21int replace_text(char *original, const char *target, const char *replacement, unsigned flags);
22int file_replace_text(const char* filename, const char* target, const char* replacement, unsigned flags);
23
24#endif //STASIS_RELOCATION_H
int file_replace_text(const char *filename, const char *target, const char *replacement, unsigned flags)
Definition relocation.c:110
int replace_text(char *original, const char *target, const char *replacement, unsigned flags)
Definition relocation.c:28