Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
nop.c File Reference

pretty-print graph file More...

#include <cgraph/cgraph.h>
#include <cgraph/exit.h>
#include <cgraph/ingraphs.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
Include dependency graph for nop.c:

Go to the source code of this file.

Functions

static void usage (int v)
 
static void init (int argc, char *argv[])
 
int main (int argc, char **argv)
 

Variables

static char ** Files
 
static bool chkOnly
 
static const char useString []
 

Function Documentation

◆ init()

static void init ( int  argc,
char *  argv[] 
)
static

Definition at line 39 of file nop.c.

References chkOnly, Files, graphviz_exit(), and usage.

Referenced by main().

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

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 70 of file nop.c.

References agclose(), agerrors(), agwrite(), chkOnly, ingraph_state::errors, Files, graphviz_exit(), init(), newIngraph(), and nextGraph().

Here is the call graph for this function:

◆ usage()

static void usage ( int  v)
static

Definition at line 33 of file nop.c.

References graphviz_exit(), and useString.

Here is the call graph for this function:

Variable Documentation

◆ chkOnly

bool chkOnly
static

Definition at line 26 of file nop.c.

Referenced by init(), and main().

◆ Files

char** Files
static

Definition at line 25 of file nop.c.

Referenced by init(), and main().

◆ useString

const char useString[]
static
Initial value:
= "Usage: nop [-p?] <files>\n\
-p - check for valid DOT\n\
-? - print usage\n\
If no files are specified, stdin is used\n"

Definition at line 28 of file nop.c.

Referenced by usage().