/*
 * lev1
 *
 * This program removes all code from a C file, leaving only the function
 * declarations, global definitions, etc. that are at the first level
 * of parsing. -Brian Gaeke <brg@dgate.ping.com>
 */

#include <stdio.h>

main ()
{
	char ch;
	int level = 0;

	while ((ch = getchar()) != EOF)
	{
		if (ch == '{') level++;
		if (level == 0) putchar(ch);
		if (ch == '}') level--;
	}
}
