STASIS
A pipeline delivery generator
Toggle main menu visibility
Loading...
Searching...
No Matches
src
lib
core
include
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
21
int
replace_text
(
char
*original,
const
char
*target,
const
char
*replacement,
unsigned
flags);
22
int
file_replace_text
(
const
char
* filename,
const
char
* target,
const
char
* replacement,
unsigned
flags);
23
24
#endif
//STASIS_RELOCATION_H
file_replace_text
int file_replace_text(const char *filename, const char *target, const char *replacement, unsigned flags)
Definition
relocation.c:110
replace_text
int replace_text(char *original, const char *target, const char *replacement, unsigned flags)
Definition
relocation.c:28
Generated by
1.17.0