28static const char useString[] =
"Usage: nop [-p?] <files>\n\
29 -p - check for valid DOT\n\
31If no files are specified, stdin is used\n";
39static void init(
int argc,
char *argv[])
44 while ((c = getopt(argc, argv,
"p?")) != -1) {
50 if (optopt ==
'\0' || optopt ==
'?')
53 fprintf(stderr,
"nop: option -%c unrecognized\n",
59 fprintf(stderr,
"nop: unexpected error\n");
70int main(
int argc,
char **argv)
abstract graph C library, Cgraph API
static NORETURN void graphviz_exit(int status)
int agclose(Agraph_t *g)
deletes a graph, freeing its associated storage
int agwrite(Agraph_t *g, void *chan)
Return 0 on success, EOF on failure.
static const char * usage
Agraph_t * nextGraph(ingraph_state *sp)
ingraph_state * newIngraph(ingraph_state *sp, char **files)
supports user-supplied data
static void init(int argc, char *argv[])
static const char useString[]