Revision 1f7801656c9e30ee4b174b6dede619f383555b5f authored by IuricichF on 14 May 2016, 20:29:04 UTC, committed by IuricichF on 14 May 2016, 20:29:04 UTC
1 parent 1077952
Sorting.h
#ifndef SORTING_H
#define SORTING_H
typedef struct {
int v1,v2;
int t;
} aux;
static int cmp_aux( const void *p, const void *q )
{
aux *a = (aux *) p ;
aux *b = (aux *) q ;
if ( a->v1 > b->v1 ) return 1 ;
if ( a->v1 < b->v1 ) return -1 ;
if ( a->v2 > b->v2 ) return 1;
if ( a->v2 < b->v2 ) return -1;
return 0;
}
#endif // SORTING_H

Computing file changes ...