skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

devino_cmp.c (264B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/devino.h>
      4 
      5 int devino_cmp (void const *a, void const *b)
      6 {
      7   devino const *aa = a ;
      8   devino const *bb = b ;
      9   return aa->dev < bb->dev ? -1 :
     10     aa->dev > bb->dev ? 1 :
     11     aa->ino < bb->ino ? -1 :
     12     aa->ino > bb->ino ;
     13 }