|
|
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 X
Length: 729 (0x2d9)
Types: TextFile
Names: »XQueryTree.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z«
└─⟦2109abc41⟧
└─⟦this⟧ »./X.V10R4/Xlib/XQueryTree.c«
#include <X/mit-copyright.h>
/* $Header: XQueryTree.c,v 10.5 86/04/22 15:20:57 jg Rel $ */
/* Copyright Massachusetts Institute of Technology 1985 */
#include "XlibInternal.h"
Status XQueryTree (w, parent, nchildren, children)
Window w;
Window *parent;
int *nchildren;
Window **children;
{
register Display *dpy;
register XReq *req;
XRep rep;
int nbytes;
GetReq(X_QueryTree, w);
if (!_XReply(dpy, &rep))
return (0);
*parent = rep.param.l[0];
if ((*nchildren = rep.param.l[1]) == 0) {
*children = NULL;
return (1);
}
if ((*children = (Window *) malloc (nbytes = rep.param.l[1]*sizeof(Window))) == NULL)
_XIOError (dpy);
_XRead (dpy, (char *)*children, nbytes);
return (1);
}