Replace occurences of one string with another
#include <firestring.h>
-lfirestring
int firestring_estr_replace(struct firestring_estr_t * const dest, const struct firestring_estr_t * const source, const struct firestring_estr_t * const to, const struct firestring_estr_t * const from)
firestring_estr_replace() copies source into dest, replacing all instances from from with to. If there is insufficient space in dest, the function returns 1 and the contents of dest are undefined.
0 if the replacement was successful; 1 if there was insufficient space in destination for the replacement to occur.
Ian Gulliver <[email protected]>