Discussion Locked

c flow graph

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
what does the cflow command in unix do and how does it do what it is supposed to do? pl. give me an example also

1 reply

by dineshr

Cflow is a handy development tool, which gives a transitive relation of each symbols referenced in a particular program. in the sense, for every function/variable a particular function uses, u get the information like where it is declared and whats the type.

heres, the example from CFLOW man pages :
int i;
main()
{
f();
g();
f();
}
f()
{
i = h();
}

the command:

cflow -ix file.c
produces the output
1 main: int(),
2 f: int(),
3 h: <>
4 i: int,
5 g: <>

This discussion is closed to new replies.