Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!cel.cummins.com!philip From: philip@cel.cummins.com (Philip D. Pokorny) Newsgroups: comp.sys.apollo Subject: Re: Node ID from C Message-ID: <9105231416.AA12556@cel.cummins.com> Date: 23 May 91 14:16:20 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 27 Dave Funk mentions: ---------- However for a quick and simple whack, try: extern void msg_$get_my_node( int *node_id ); It's not released but it's simple and relatively safe. ---------- Another way might be: int node_id ; sscanf( getenv( "NODEID" ), "NODEID=%x", &node_id ); Before SR10 NODEID was a "protected" environment variable that you could count on not to change and to be correct... At SR10 you *can* change the value of this variable but I wouldn't want to speculate on what might or might not break... In short it should be fairly reliable... Sincerely, Philip D. Pokorny philip@cel.cummins.com :)