we get a compiler warning because eq(str, ...) expects a char as second argument, so we loose the const qualifier for foo, but it should take a const char instead
EDIT
same for ptr, should take const void , but takes void (I guess it's the same for every typed pointers too)
when doing for example:
we get a compiler warning because eq(str, ...) expects a char as second argument, so we loose the const qualifier for foo, but it should take a const char instead
EDIT
same for ptr, should take const void , but takes void (I guess it's the same for every typed pointers too)