Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- #include<ctype.h>
- struct kor {
- char name[30];
- int age;
- };
- int foo(FILE *f)
- {
- const void *a;
- const void *b;
- struct hallgato *pa = (struct hallgato *)a;
- struct hallgato *pb = (struct hallgato *)b;
- int res=0;
- if((pa->age) < (pb->age))
- res=-1;
- else if((pa->age) > (pb->age))
- res=1;
- return res;
- }
Add Comment
Please, Sign In to add comment