On 16/01/07, Alef Veld <[EMAIL PROTECTED]> wrote: > I'm not sure what you mean exactly by number 2 though. Do you > mean that the long is defined 32bits on my machine ?
Not quite. Rather that TimeTicks is defined as 32 bits, regardless of the architecture of a particular system. Remember SNMP is all about providing a *standard* mechanism for network management. That means it must work the same way on all systems. It's not possible to have different maximum sizes on different systems - that way madness lies. > If so, are you implying i need an even bigger number to host the long * ? No - it doesn't work that way. TimeTicks will inherently wrap after about 16 months. There's nothing you can do to prevent this. > I just need a proper way to stuff the long * dereferenced value into > my char * pointer. Don't think of the char* as a string of printable characters. It's really just an alternative to void* - a generic pointer. All you need to do is take the long* pointer, and cast it to char* (or vice versa). Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
