48 fprintf(stderr,
"Can't open %s\n", sp->
u.
Files[sp->
ctr - 1]);
75 if ((g = sp->
readf(sp->
fp)) != 0)
93 fprintf(stderr,
"ingraphs: out of memory\n");
113 fprintf(stderr,
"ingraphs: NULL read function\n");
122 return new_ing(sp, files, 0, readf);
130 return new_ing(sp, 0, graphs, readf);
150 (void)fclose(sp->
fp);
abstract graph C library, Cgraph API
void agsetfile(const char *)
sets the current file name for subsequent error reporting
Agraph_t * agread(void *chan, Agdisc_t *disc)
constructs a new graph
FILE * gv_fopen(const char *filename, const char *mode)
wrapper around fopen for internal library usage
char * fileName(ingraph_state *sp)
Return name of current file being processed.
void closeIngraph(ingraph_state *sp)
Agraph_t * nextGraph(ingraph_state *sp)
static ingraph_state * new_ing(ingraph_state *sp, char **files, Agraph_t **graphs, Agraph_t *(*readf)(void *))
ingraph_state * newIng(ingraph_state *sp, char **files, Agraph_t *(*readf)(void *))
ingraph_state * newIngraph(ingraph_state *sp, char **files)
static Agraph_t * dflt_read(void *fp)
ingraph_state * newIngGraphs(ingraph_state *sp, Agraph_t **graphs, Agraph_t *(*readf)(void *))
static void nextFile(ingraph_state *sp)
supports user-supplied data
union ingraph_state::@65 u
Agraph_t *(* readf)(void *)