|
|
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 d
Length: 1005 (0x3ed)
Types: TextFile
Names: »dn_cmp.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z«
└─⟦e5a54fb17⟧
└─⟦this⟧ »pp-5.0/Chans/dirlist/dn_cmp.c«
/* dn_cmp.c: */
# ifndef lint
static char Rcsid[] = "@(#)$Header: /cs/research/pp/hubris/pp-beta/Chans/dirlist/RCS/dn_cmp.c,v 5.0 90/09/20 15:45:44 pp Exp Locker: pp $";
# endif
/*
* $Header: /cs/research/pp/hubris/pp-beta/Chans/dirlist/RCS/dn_cmp.c,v 5.0 90/09/20 15:45:44 pp Exp Locker: pp $
*
* $Log: dn_cmp.c,v $
* Revision 5.0 90/09/20 15:45:44 pp
* rcsforce : 5.0 public release
*
*/
#include <isode/quipu/util.h>
#include <isode/quipu/name.h>
dn_cmp (a,b)
register DN a,b;
{
int res;
for (; (a != NULLDN) && (b != NULLDN) ; a = a->dn_parent, b = b->dn_parent)
if ( (res = rdn_cmp (a->dn_rdn,b->dn_rdn)) != OK) {
return res;
}
if (( a == NULLDN) && (b == NULLDN)) {
return OK;
} else {
return ( a == NULLDN ? 1 : -1 );
}
}
dn_cmp_prefix (a,b)
register DN a,b;
{
for (; a != NULLDN && b != NULLDN ; a = a->dn_parent, b = b->dn_parent)
if ( dn_comp_cmp (a,b) == NOTOK) {
return NOTOK;
}
if ( a == NULLDN) {
return OK;
} else {
return NOTOK;
}
}