Advertisement
Patresss

2.1

Sep 2nd, 2014
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. int cmp_pnt_i(const void *a, const void *b)
  2. {
  3. return (((struct point*)a)->x-((struct point*)b)->x);
  4. }
  5.  
  6. int cmp_pnt_c(const void *a, const void *b)
  7. {
  8.  
  9. return strcmp(((struct point*)a)->label,((struct point*)b)->label);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement