1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* find a window by its name under X |
9 |
– |
* |
10 |
– |
* 4/22/91 Greg Ward |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include <stdio.h> |
11 |
+ |
#include <string.h> |
12 |
+ |
#include <stdlib.h> |
13 |
|
#include <X11/Xlib.h> |
14 |
|
|
15 |
|
|
16 |
|
Window |
17 |
< |
xfindwind(dpy, win, name, depth) |
18 |
< |
Display *dpy; |
19 |
< |
Window win; |
20 |
< |
char *name; |
21 |
< |
int depth; |
17 |
> |
xfindwind( |
18 |
> |
Display *dpy, |
19 |
> |
Window win, |
20 |
> |
char *name, |
21 |
> |
int depth |
22 |
> |
) |
23 |
|
{ |
24 |
|
char *nr; |
25 |
|
Window rr, pr, *cl; |