Annotation of 43BSD/contrib/X/Xlib/XGetFont.c, revision 1.1.1.1

1.1       root        1: #include <X/mit-copyright.h>
                      2: 
                      3: /* $Header: XGetFont.c,v 10.4 86/02/01 15:34:52 tony Rel $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1985  */
                      5: 
                      6: #include "XlibInternal.h"
                      7: Font XGetFont (name)
                      8:        char *name;
                      9: {
                     10:        register XReq *req;
                     11:        Display *dpy;
                     12:        XRep rep;
                     13:        int len;
                     14: 
                     15:        GetReq(X_GetFont, 0);
                     16:        req->param.s[0] = len = strlen (name);
                     17:        Data(dpy, name, len);
                     18:        if (!_XReply(dpy, &rep))
                     19:            return(NULL);
                     20:        return (rep.param.l[0]);
                     21: }
                     22: 

unix.superglobalmegacorp.com

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