Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!nih-csl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.lang.c Subject: Re: default case Message-ID: <9225@elsie.UUCP> Date: 1 Jan 90 20:26:36 GMT References: <25516@cup.portal.com> Organization: NIH-LEC, Bethesda, MD Lines: 25 > The reason I want this is because it makes it possible for the > compiler to notice when you misspell "default". Script started on Mon Jan 1 15:25:00 1990 elsie$ cat try.c int main() { switch (atoi("5")) { case 0: abort(); defualt: break; } return 0; } elsie$ lint try.c try.c: try.c(7): warning: defualt unused in function main elsie$ exit script done on Mon Jan 1 15:25:16 1990 -- 1972: Canada has no Saturn V equivalent 1989: Canada has no Saturn V equivalent Arthur David Olson ado@alw.nih.gov ADO is a trademark of Ampex.