Graphviz  2.41.20171026.1811
Macros | Typedefs | Functions
write.c File Reference
#include <stdio.h>
#include <ctype.h>
#include "cghdr.h"
#include <string.h>
Include dependency graph for write.c:

Go to the source code of this file.

Macros

#define EMPTY(s)   ((s == 0) || (s)[0] == '\0')
 
#define MAX(a, b)   ((a)>(b)?(a):(b))
 
#define CHKRV(v)   {if ((v) == EOF) return EOF;}
 
#define MAX_OUTPUTLINE   128
 
#define MIN_OUTPUTLINE   60
 
#define is_id_char(c)   (isalnum(c) || ((c) == '.') || ((c) == '-') || !isascii(c))
 

Typedefs

typedef void iochan_t
 

Functions

char * agstrcanon (char *arg, char *buf)
 
char * agcanonStr (char *str)
 
char * agcanon (char *str, int html)
 
int node_in_subg (Agraph_t *g, Agnode_t *n)
 
int agwrite (Agraph_t *g, void *ofile)
 

Macro Definition Documentation

#define CHKRV (   v)    {if ((v) == EOF) return EOF;}

Definition at line 20 of file write.c.

Referenced by agwrite().

#define EMPTY (   s)    ((s == 0) || (s)[0] == '\0')

Definition at line 18 of file write.c.

#define is_id_char (   c)    (isalnum(c) || ((c) == '.') || ((c) == '-') || !isascii(c))

Definition at line 64 of file write.c.

#define MAX (   a,
 
)    ((a)>(b)?(a):(b))

Definition at line 19 of file write.c.

#define MAX_OUTPUTLINE   128

Definition at line 30 of file write.c.

Referenced by agwrite().

#define MIN_OUTPUTLINE   60

Definition at line 31 of file write.c.

Referenced by agwrite().

Typedef Documentation

typedef void iochan_t

Definition at line 22 of file write.c.

Function Documentation

char* agcanon ( char *  str,
int  html 
)

Definition at line 217 of file write.c.

char* agcanonStr ( char *  str)

Definition at line 207 of file write.c.

References agstrcanon().

Referenced by write_plain().

char* agstrcanon ( char *  arg,
char *  buf 
)

Definition at line 177 of file write.c.

References aghtmlstr().

Referenced by agcanonStr().

int agwrite ( Agraph_t g,
void *  ofile 
)

Definition at line 678 of file write.c.

References AGDISC, agget(), CHKRV, FALSE, int, MAX_OUTPUTLINE, MIN_OUTPUTLINE, NULL, and TRUE.

Referenced by main(), scndump(), and write().

int node_in_subg ( Agraph_t g,
Agnode_t n 
)

Definition at line 380 of file write.c.

References agfstsubg(), agnxtsubg(), agsubnode(), FALSE, and TRUE.