Possible Duplicate:
function overloading in C
ANSI C doesn't permit function overloading (I don't sure about C99).
for example:
char max(char x, char y);
short max(short x, short y);
int max(int x, int y);
float max(float x, float y);
is not a valid ANSI C source code.
Which technique (or idea) should be used for function overloading problem in ANSI C?
Note:
An answer is renaming the functions, but which pattern should be used for renaming, that function names remain 'good function name'?
for example:
char max1(char x, char y);
short max2(short x, short y);
int max3(int x, int y);
float max4(float x, float y);
is not a good naming for max
function name.