Here is a way:
Code:
myFun(char *dummyString);
Fun() {
char *string = "Overwritten Value";
myFun(string);
};
so you can call Fun() instead of myFun(). Fun() will be like a function to initialize myFun(), your original function.
I don't think there is another way. Well, maybe a macro could do the trick. Like:
Code:
#define myFun() myFun("");
so when you write myFun() it will be replaced with myFun(""), with "" as the dummy string.
Which is "better"? The first is more readable, the second might be more efficient, depending on your function
EDIT: But of course optional parameter seems much better (didn't know it existed)