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*);