What is the scope of 'typedef'?

Chris Torek chris at mimsy.UUCP
Sun Apr 23 00:34:20 AEST 1989


The scope of typedefs is the same as that of any other identifier:

	f()
	{
		typedef int foo;
		...
	}
	/* foo is no longer a typedef */
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list