Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
io.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <cgraph/cghdr.h>
#include <cgraph/rdr.h>
Include dependency graph for io.c:

Go to the source code of this file.

Functions

static int iofread (void *chan, char *buf, int bufsize)
 
static int ioputstr (void *chan, const char *str)
 
static int ioflush (void *chan)
 
static int memiofread (void *chan, char *buf, int bufsize)
 
static Agraph_tagmemread0 (Agraph_t *arg_g, const char *cp)
 
Agraph_tagmemread (const char *cp)
 reads a graph from the input string
 
Agraph_tagmemconcat (Agraph_t *g, const char *cp)
 

Variables

Agiodisc_t AgIoDisc = { iofread, ioputstr, ioflush }
 
static Agiodisc_t memIoDisc = {memiofread, 0, 0}
 

Function Documentation

◆ agmemread0()

static Agraph_t * agmemread0 ( Agraph_t arg_g,
const char *  cp 
)
static

Definition at line 73 of file io.c.

References agconcat(), AgIdDisc, AgIoDisc, agread(), agsetfile(), rdr_t::cur, rdr_t::data, Agiodisc_s::flush, Agdisc_s::id, Agdisc_s::io, rdr_t::len, memIoDisc, NULL, and Agiodisc_s::putstr.

Referenced by agmemconcat(), and agmemread().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ioflush()

static int ioflush ( void *  chan)
static

Definition at line 34 of file io.c.

◆ iofread()

static int iofread ( void *  chan,
char *  buf,
int  bufsize 
)
static

Definition at line 20 of file io.c.

◆ ioputstr()

static int ioputstr ( void *  chan,
const char *  str 
)
static

Definition at line 29 of file io.c.

References str.

◆ memiofread()

static int memiofread ( void *  chan,
char *  buf,
int  bufsize 
)
static

Definition at line 42 of file io.c.

Variable Documentation

◆ memIoDisc

Agiodisc_t memIoDisc = {memiofread, 0, 0}
static

Definition at line 71 of file io.c.

Referenced by agmemread0().