~julienxx/castor9

a26419bfecd8f5f3174b487c51c9552f8cde62fe — Julien Blanchard 3 years ago 2be78fb
Move replace_char to util.c
3 files changed, 1 insertions(+), 10 deletions(-)

A castor.6
M castor.c
M castor.h
A castor.6 => castor.6 +0 -0
M castor.c => castor.c +0 -10
@@ 75,16 75,6 @@ char *menu3[] = {
};


char* 
replace_char(char* str, char find, char replace)
{
	char *current_pos = strchr(str,find);
	while(current_pos){
		*current_pos = replace;
		current_pos = strchr(current_pos,find);
	}
	return str;
}

char*
cleanup(char *line)

M castor.h => castor.h +1 -0
@@ 29,6 29,7 @@ typedef struct {
void *emalloc(int n);
char *estrdup(char *s);
int strbeg(char* str, char *prefix);
char *replace_char(char *s, char f, char r);

/* url.c */
int	Efmt(Fmt*);