List the nodes of a binary tree? C programming language

Hi everyone, how can I write a program in the C programming language so that it can list the nodes of a binary tree? The list should start with the root, then the nodes at depth one followed by nodes at depth two and so forth. How can I go about this cause? Thanks.
