I think, and/or hope, that you are looking for the largest
positive integer which can be represented in an enum. There's
usually a #define for such, but I can't (am too lazy) to find it.
Assuming we are using 16 bit ints then the value (given all
sorts of prior special knowledge) would be 0x7FFF which is
only 32,767, not a million...
MS
Brandon Fu wrote:
> Hi all,
> Do anyone know how to set an infinity in enumerated constant?
> Example i have a header file and i wish to set 1 of the constant as
> infinity:
>
> enum { //define constant
> SET_INIFINITY = ?,
> };
>
> Anyone please help me,tks a milllion.
>
> yours sincerely,
> Brandon
>
> ------------------------------------------------------------------------
> Chat online and in real-time with friends and family! Windows Live
> Messenger <http://get.live.com/messenger/overview>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help