File: returnbuf.c

package info (click to toggle)
pgplot5 5.2-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 6,280 kB
  • ctags: 5,903
  • sloc: fortran: 37,938; ansic: 18,809; sh: 1,147; objc: 532; makefile: 363; perl: 234; pascal: 233; tcl: 178; awk: 51; csh: 25
file content (27 lines) | stat: -rw-r--r-- 915 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* The returnbuf routine sends a message back to the client program.  It */
/* allows only one message to be sent to the client at a time - the client */
/* must ensure that it gets a value before asking for the next one. */

/* Sam Southard, Jr. */
/* Created: 19-Nov-1990 */
/* Modification History: */
/* 15-Aug-1991	SNS/CIT	No longer includes hooks for Xvideo */
/*  8-Oct-1991	SNS/CIT	Globals now in globals.h */

#include "figdisp.h"
#include "globals.h"

/* The X Window include files */
#include <X11/Xlib.h>
#include <X11/Xatom.h>

void returnbuf(msg,len,destwin)
short *msg;	/* the message to send to the client. */
int len;	/* The length of the message. */
Window destwin;	/* The window who's atom should be changed. */
{
	/* If the window is still around, then send the reply */
	if (selset) XChangeProperty(display,destwin,selatom,XA_STRING,8,
		PropModeReplace,(unsigned char *)msg,len*2);
	return;
}