Annotation of 43BSDReno/contrib/isode-beta/dsap/common/as_find.c, revision 1.1

1.1     ! root        1: #include "quipu/util.h"
        !             2: #include "quipu/attrvalue.h"
        !             3: 
        !             4: Attr_Sequence as_find_type (a,b)
        !             5: Attr_Sequence a;
        !             6: AttributeType b;
        !             7: {
        !             8: register int i;
        !             9: register Attr_Sequence ptr;
        !            10:        /* if Attr_cmp returns <0 no point in continuing due to ordering */
        !            11: 
        !            12:        for(ptr = a; ptr != NULLATTR; ptr=ptr->attr_link) {
        !            13:                if (  (i = AttrT_cmp (ptr->attr_type,b)) <= 0)
        !            14:                        return (i ? NULLATTR : ptr);
        !            15:        }
        !            16:        return (NULLATTR);
        !            17: }
        !            18: 
        !            19: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.