Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs3-19sp
lab02
Commits
e4e0a39f
Commit
e4e0a39f
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update comparator.h
parent
266b71d1
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
comparator.h
+6
-4
comparator.h
with
6 additions
and
4 deletions
+6
-4
comparator.h
View file @
e4e0a39f
...
...
@@ -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 */
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help