Well, obviously? I do have overloading to work perfectly fine.
int test (char* s);
int test (int n);
void main () {
int num = 5;
char* str = "4";
printf("%i", test(num)); //return 5
printf("%i", test(str)); //return 4
}
int test(char* s) {
return ((int)str_to_num(s));
}
int test(int n) {
return n;
}
Should be the same setting as you, right?
first printed value is 5, second is 4.