char * searchandreplace(const char *tosearch, const char *searchfor, const char *replacewith)
Read 'tosearch', replace all occurrences of 'searchfor' with 'replacewith' and return a pointer to th...
const char * get_env(const char *name, const char *envp[])
Given an environmental variable name, search the envp array for its value.