basukinjal Newbie Poster

Ive made my binary tree in the following format
[code=C]
typedef struct node
{ int info;
struct node left;
struct node
right;
}*nodeptr;
[/code]

Im looking for a function that will accept the root pointer and print the tree in a graphical format.
for eg.
i want the output to be
5
/\
__37
__//\
_268
____
\
__9
How can i get such and output (without the underscores .. given only because spaces cannot be detected.)
Please Help!!