Zymeth

Untitled

May 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4. #include<ctype.h>
  5.  
  6. struct kor {
  7.   char name[30];
  8.   int age;
  9. };
  10.  
  11. int foo(FILE *f)
  12. {
  13.     const void *a;
  14.     const void *b;
  15.     struct hallgato *pa = (struct hallgato *)a;
  16.     struct hallgato *pb = (struct hallgato *)b;
  17.     int res=0;
  18.     if((pa->age) < (pb->age))
  19.         res=-1;
  20.     else if((pa->age) > (pb->age))
  21.         res=1;
  22.     return res;
  23. }
Add Comment
Please, Sign In to add comment