-static int
-winprop(Window w, Atom a, Atom t, long l, unsigned char **prop)
-{
- int status, format;
- unsigned long res, extra;
- Atom real;
-
- status = XGetWindowProperty(dpy, w, a, 0L, l, False, t, &real, &format,
- &res, &extra, prop);
-
- if(status != Success || *prop == 0) {
- return 0;
- }
- if(res == 0) {
- free((void *) *prop);
- }
- return res;
-}
-