\section{lib/cgraph/write.c File Reference}
\label{write_8c}\index{lib/cgraph/write.\-c@{lib/cgraph/write.\-c}}
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$ctype.\-h$>$}\\*
{\ttfamily \#include \char`\"{}cghdr.\-h\char`\"{}}\\*
{\ttfamily \#include $<$string.\-h$>$}\\*
Include dependency graph for write.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{write_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf E\-M\-P\-T\-Y}({\bf s})~(({\bf s} == 0) $|$$|$ ({\bf s})[0] == '\textbackslash{}0')
\item 
\#define {\bf M\-A\-X}(a, b)~((a)$>$(b)?(a)\-:(b))
\item 
\#define {\bf C\-H\-K\-R\-V}(v)~\{{\bf if} ((v) == E\-O\-F) return E\-O\-F;\}
\item 
\#define {\bf M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}~128
\item 
\#define {\bf M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}~60
\item 
\#define {\bf is\-\_\-id\-\_\-char}(c)~(isalnum(c) $|$$|$ ((c) == '.') $|$$|$ ((c) == '-\/') $|$$|$ !isascii(c))
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef void {\bf iochan\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
char $\ast$ {\bf agstrcanon} (char $\ast$arg, char $\ast$buf)
\item 
char $\ast$ {\bf agcanon\-Str} (char $\ast${\bf str})
\item 
char $\ast$ {\bf agcanon} (char $\ast${\bf str}, {\bf int} html)
\item 
{\bf int} {\bf node\-\_\-in\-\_\-subg} ({\bf Agraph\-\_\-t} $\ast$g, {\bf Agnode\-\_\-t} $\ast$n)
\item 
{\bf int} {\bf agwrite} ({\bf Agraph\-\_\-t} $\ast$g, void $\ast$ofile)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{write.\-c@{write.\-c}!C\-H\-K\-R\-V@{C\-H\-K\-R\-V}}
\index{C\-H\-K\-R\-V@{C\-H\-K\-R\-V}!write.c@{write.\-c}}
\subsubsection[{C\-H\-K\-R\-V}]{\setlength{\rightskip}{0pt plus 5cm}\#define C\-H\-K\-R\-V(
\begin{DoxyParamCaption}
\item[{}]{v}
\end{DoxyParamCaption}
)~\{{\bf if} ((v) == E\-O\-F) return E\-O\-F;\}}\label{write_8c_a3dffcfc918e26f0825a955e08d5e57bd}


Definition at line 20 of file write.\-c.



Referenced by agwrite().

\index{write.\-c@{write.\-c}!E\-M\-P\-T\-Y@{E\-M\-P\-T\-Y}}
\index{E\-M\-P\-T\-Y@{E\-M\-P\-T\-Y}!write.c@{write.\-c}}
\subsubsection[{E\-M\-P\-T\-Y}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-M\-P\-T\-Y(
\begin{DoxyParamCaption}
\item[{}]{{\bf s}}
\end{DoxyParamCaption}
)~(({\bf s} == 0) $|$$|$ ({\bf s})[0] == '\textbackslash{}0')}\label{write_8c_acb6c9c7a3fab6ba3038be5e40e43dc0a}


Definition at line 18 of file write.\-c.

\index{write.\-c@{write.\-c}!is\-\_\-id\-\_\-char@{is\-\_\-id\-\_\-char}}
\index{is\-\_\-id\-\_\-char@{is\-\_\-id\-\_\-char}!write.c@{write.\-c}}
\subsubsection[{is\-\_\-id\-\_\-char}]{\setlength{\rightskip}{0pt plus 5cm}\#define is\-\_\-id\-\_\-char(
\begin{DoxyParamCaption}
\item[{}]{c}
\end{DoxyParamCaption}
)~(isalnum(c) $|$$|$ ((c) == '.') $|$$|$ ((c) == '-\/') $|$$|$ !isascii(c))}\label{write_8c_a1a3a6fe087e35b468414395ac67cc575}


Definition at line 64 of file write.\-c.

\index{write.\-c@{write.\-c}!M\-A\-X@{M\-A\-X}}
\index{M\-A\-X@{M\-A\-X}!write.c@{write.\-c}}
\subsubsection[{M\-A\-X}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-X(
\begin{DoxyParamCaption}
\item[{}]{a, }
\item[{}]{b}
\end{DoxyParamCaption}
)~((a)$>$(b)?(a)\-:(b))}\label{write_8c_afa99ec4acc4ecb2dc3c2d05da15d0e3f}


Definition at line 19 of file write.\-c.

\index{write.\-c@{write.\-c}!M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E@{M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}}
\index{M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E@{M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}!write.c@{write.\-c}}
\subsubsection[{M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E~128}\label{write_8c_aad05a9af77978d966da29aae73543331}


Definition at line 30 of file write.\-c.



Referenced by agwrite().

\index{write.\-c@{write.\-c}!M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E@{M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}}
\index{M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E@{M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}!write.c@{write.\-c}}
\subsubsection[{M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E~60}\label{write_8c_a18eabc758b64ded5aa716a5479ccb116}


Definition at line 31 of file write.\-c.



Referenced by agwrite().



\subsection{Typedef Documentation}
\index{write.\-c@{write.\-c}!iochan\-\_\-t@{iochan\-\_\-t}}
\index{iochan\-\_\-t@{iochan\-\_\-t}!write.c@{write.\-c}}
\subsubsection[{iochan\-\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef void {\bf iochan\-\_\-t}}\label{write_8c_a1797357d5219d5c5ef0a2e44f2346bf1}


Definition at line 22 of file write.\-c.



\subsection{Function Documentation}
\index{write.\-c@{write.\-c}!agcanon@{agcanon}}
\index{agcanon@{agcanon}!write.c@{write.\-c}}
\subsubsection[{agcanon}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ agcanon (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{str, }
\item[{{\bf int}}]{html}
\end{DoxyParamCaption}
)}\label{write_8c_a55f8bc5ab8acb5769557b9ba64ddeec9}


Definition at line 217 of file write.\-c.

\index{write.\-c@{write.\-c}!agcanon\-Str@{agcanon\-Str}}
\index{agcanon\-Str@{agcanon\-Str}!write.c@{write.\-c}}
\subsubsection[{agcanon\-Str}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ agcanon\-Str (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{write_8c_ac67b6a1bb1f4b5a83fc83ac44c037545}


Definition at line 207 of file write.\-c.



References agstrcanon().



Referenced by write\-\_\-plain().

\index{write.\-c@{write.\-c}!agstrcanon@{agstrcanon}}
\index{agstrcanon@{agstrcanon}!write.c@{write.\-c}}
\subsubsection[{agstrcanon}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ agstrcanon (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{arg, }
\item[{char $\ast$}]{buf}
\end{DoxyParamCaption}
)}\label{write_8c_aaca8974d0e2b3f45e6e4dcdb979e85a3}


Definition at line 177 of file write.\-c.



References aghtmlstr().



Referenced by agcanon\-Str().

\index{write.\-c@{write.\-c}!agwrite@{agwrite}}
\index{agwrite@{agwrite}!write.c@{write.\-c}}
\subsubsection[{agwrite}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} agwrite (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{void $\ast$}]{ofile}
\end{DoxyParamCaption}
)}\label{write_8c_ad5493f46ce0c5933d0be002539d12731}


Definition at line 678 of file write.\-c.



References A\-G\-D\-I\-S\-C, agget(), C\-H\-K\-R\-V, F\-A\-L\-S\-E, int, M\-A\-X\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E, M\-I\-N\-\_\-\-O\-U\-T\-P\-U\-T\-L\-I\-N\-E, N\-U\-L\-L, and T\-R\-U\-E.



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

\index{write.\-c@{write.\-c}!node\-\_\-in\-\_\-subg@{node\-\_\-in\-\_\-subg}}
\index{node\-\_\-in\-\_\-subg@{node\-\_\-in\-\_\-subg}!write.c@{write.\-c}}
\subsubsection[{node\-\_\-in\-\_\-subg}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} node\-\_\-in\-\_\-subg (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{write_8c_a91c65f68dc9eeb75a59ede8517ff633b}


Definition at line 380 of file write.\-c.



References agfstsubg(), agnxtsubg(), agsubnode(), F\-A\-L\-S\-E, and T\-R\-U\-E.

