*BSD News Article 14961


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!almserv!usenet
From: sxupjd@anubis (Philip J DiFalco)
Subject: enum types
Message-ID: <1993Apr23.115422.17857@almserv.uucp>
Sender: usenet@almserv.uucp
Nntp-Posting-Host: anubis
Reply-To: sxupjd@fnma.com
Organization: Fannie Mae
Date: Fri, 23 Apr 1993 11:54:22 GMT
Lines: 11


For the following an enumerated type:

	typedef enum {x1=1,x5=5,x9=9,xx=6,xy=11} xType;

How can I determine the number of elements that belong to xType?

--
email: sxupjd@fnma.com (NeXT Mail Okay)
Philip DiFalco, Programmer Analyst, Advanced Technology
FannieMae, 3900 Wisconsin Ave NW, Washington, DC 22016 (202)752-2812