I'm currently working with C. How useful do you think a function like the following is:
bool equal(const char *s1, const char *s2) {
return strcmp(s1, s2) == 0;
}
I'm a bit torn apart, on one hand I think it makes the code more readable, on the other hand I don't want to clutter my program with helper functions like these that solve only a very little problem, as strcmp(s1, s2) == 0 is probably almost as readable to a c programmer. What do you think?