FireBirdLib - Topfield TMS PVR TAP Programming Library
PrintNet.c
Go to the documentation of this file.
1#include <fcntl.h>
2#include <unistd.h>
3#include <string.h>
4#include "libFireBird.h"
5
6char PrintNetBuffer[1024];
7
8void PrintNet(char *puffer)
9{
10 int i = 0;
11 int fd;
12 char fn[12];
13
14 do
15 {
16 TAP_SPrint(fn, "/dev/pts/%d", i);
17 fd = open(fn, O_RDWR);
18 if(fd >= 0)
19 {
20 write(fd, puffer, strlen(puffer));
21 close(fd);
22
23 return;
24 }
25 i++;
26 }
27 while(i < 20);
28}
void PrintNet(char *puffer)
Definition: PrintNet.c:8
char PrintNetBuffer[1024]
Definition: PrintNet.c:6