|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 560 (0x230)
Types: TextFile
Names: »rdn_cmp.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/dsap/common/rdn_cmp.c«
#include "quipu/util.h"
#include "quipu/name.h"
#include "quipu/dsp.h"
#include "quipu/ds_error.h"
rdn_cmp_comp (a,b)
RDN a,b;
{
register int i,j;
if ((i = AttrT_cmp (&a->rdn_at,&b->rdn_at)) != 0)
return (i);
j = AttrV_cmp (&a->rdn_av,&b->rdn_av);
return (j);
}
rdn_cmp (a,b)
register RDN a,b;
{
register int i;
for (; (a != NULLRDN) && (b != NULLRDN) ; a = a->rdn_next, b = b->rdn_next)
if ( (i=rdn_cmp_comp (a,b)) != 0) {
return (i);
}
if ( (a == NULLRDN) && (b == NULLRDN) ) {
return 0;
} else {
return ( a ? 1 : -1);
}
}