Commit e4e0a39f authored by Adam Blank's avatar Adam Blank
Browse files

Update comparator.h

parent 266b71d1
No related merge requests found
Showing with 6 additions and 4 deletions
+6 -4
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment