diff --git a/comparator.h b/comparator.h index 79dedf3eee844f37c9d661a0ee5a4afd3ea2d54b..18ecdabcd4bcf69b4676252420e25049d4260956 100644 --- a/comparator.h +++ b/comparator.h @@ -4,12 +4,14 @@ #include <stddef.h> typedef int (*IntComparator)(const int a, const int b); -int int_asc(const int a, const int b); -int int_desc(const int a, const int b); +int int_asc(const int a, const int b); +int int_desc(const int a, const int b); typedef int (*StringComparator)(const char *a, const char *b); +/* We don't need to define a StringComparator because strcmp is one! */ typedef int (*Comparator)(const void *a, const void *b); -int int_p_asc(const int *a, const int *b); -int int_p_desc(const int *a, const int *b); +int int_p_asc(const int *a, const int *b); +int int_p_desc(const int *a, const int *b); + #endif /* __COMPARATOR_H */