Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f(const void *a, const void *b, size_t c)
- {
- auto d = (char *)a;
- auto e = (char *)b;
- for (size_t g = 0; g < c; g = g + 1)
- {
- if (*d > *e){
- return 1;
- }
- else if (*d < *e){
- return -1;
- }
- d = d + 1;
- e = e + 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment