Basically the title says it all. I need to print, how much of the stack is currently used by the running program and I need to print it with printf().
EDIT: I have to overflow the stack. In order to do that, I wrote a recursive function, which indefinitely calls itself. I have to print the stack usage repeatedly, to show, how the stack becomes smaller.
EDIT2: The platform is gcc on linux.