A
Andrej Prsa
Hello, List!
Does ANSI C support in any way functions that return different types
depending on the given arguments? I.e.
int my_function (int arg)
double my_function (double arg)
char *my_function (char *arg)
to be joined in a single my_function somehow? I tried playing with void*,
but I didn't get far really.
Help?
Thanks,
Andrej
Does ANSI C support in any way functions that return different types
depending on the given arguments? I.e.
int my_function (int arg)
double my_function (double arg)
char *my_function (char *arg)
to be joined in a single my_function somehow? I tried playing with void*,
but I didn't get far really.
Help?
Thanks,
Andrej