fvwm1/libs/SendInfo.c
2019-08-26 23:33:33 +01:00

27 lines
568 B
C

#include <stdio.h>
#include <ctype.h>
/***********************************************************************
*
* Procedure:
* SendInfo - send a command back to fvwm
*
***********************************************************************/
void SendInfo(int *fd,char *message,unsigned long window)
{
int w;
if(message != NULL)
{
write(fd[0],&window, sizeof(unsigned long));
w=strlen(message);
write(fd[0],&w,sizeof(int));
write(fd[0],message,w);
/* keep going */
w=1;
write(fd[0],&w,sizeof(int));
}
}