File: pgdl-write.c

package info (click to toggle)
picviz 0.5-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,128 kB
  • ctags: 604
  • sloc: ansic: 3,728; perl: 851; yacc: 695; lex: 339; python: 294; sh: 234; makefile: 153
file content (21 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 
 * Simple example of how you can write data to the
 * socket when running Picviz with the file 'test1.pcv'.
 *
 * The server should be started like this:
 * pcv -t test1.pcv -s local -Tpngcairo -o out.png
 *
 * Run the client in the same directory that the listening
 * socket.  
 */

#include <stdio.h>

int main(void)
{
	FILE *fp;

	fp = fopen("local", "a");
	fprintf(fp,"t=\"12:00\", i=\"100\", s=\"I write some stuff\";\n");
	close(fp);
}