Annotation of researchv9/X11/src/X.V11R1/lib/X/XGetFProp.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XGetFProp.c,v 11.5 87/09/11 08:04:01 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: Bool XGetFontProperty (fs, name, valuePtr)
        !             9:     XFontStruct *fs;
        !            10:     register Atom name;
        !            11:     unsigned long *valuePtr;
        !            12:     {
        !            13:     /* XXX this is a simple linear search for now.  If the
        !            14:       protocol is changed to sort the property list, this should
        !            15:       become a binary search. */
        !            16:     register XFontProp *prop = fs->properties;
        !            17:     register XFontProp *last = prop + fs->n_properties;
        !            18:     while (prop != last) {
        !            19:        if (prop->name == name) {
        !            20:            *valuePtr = prop->card32;
        !            21:            return (1);
        !            22:            }
        !            23:        prop++;
        !            24:        }
        !            25:     return (0);
        !            26:     }
        !            27: 
        !            28:        
        !            29:     
        !            30: 
        !            31:       

unix.superglobalmegacorp.com

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