2
This software may only be used by you under license from AT&T Corp.
3
("AT&T"). A copy of AT&T's Source Code Agreement is available at
4
AT&T's Internet website having the URL:
5
<http://www.research.att.com/sw/tools/graphviz/license/source.html>
6
If you received this software without first entering into a license
7
with AT&T, you have an infringing copy of this software and cannot use
8
it without violating AT&T's intellectual property rights.
17
static int iofread(void *chan, char *buf, int bufsize)
19
return read(fileno((FILE*)chan), buf, bufsize);
20
/* return fread(buf, 1, bufsize, (FILE*)chan); */
23
/* default IO methods */
24
static int ioputstr(void *chan, char *str)
26
return fputs(str, (FILE*)chan);
29
static int ioflush(void *chan)
31
return fflush((FILE*)chan);
34
Agiodisc_t AgIoDisc = { iofread, ioputstr, ioflush };