Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!rice!sun-spots-request From: davidst@tekcrl.labs.tek.com (David Stubbs) Newsgroups: comp.sys.sun Subject: Sun RPC documentation error? Keywords: Miscellaneous Message-ID: <8947@brazos.Rice.edu> Date: 15 Jun 90 16:20:18 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 28 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 218, message 5 Am I missing something, or has the bus already passed this way??? This is a sample program in Sun's "REMOTE PROCEDURE CALL PROGRAMMING GUIDE" (Revision B of 17 February 1986), section 2.1, page 7: 1 #include 2 3 main(argc, argv) 4 int argc; 5 char **argv; 6 { 7 unsigned num; 8 9 if (argc < 2) { 10 fprintf(stderr, "usage: rnusers \n"); 11 exit(1); 12 } 13 if ((num = rnusers(argv[1])) < 0 ) { 14 fprintf(stderr, "error: rnusers\n"); 15 exit(-1); 16 } 17 printf("%d users on %s\n", num, argv[1]); 18 exit(0); 19 } How is the relational operator in line 13 supposed to work with the variable declared in line 7? It sure doesn't work right on my systems. David D. Stubbs - Tektronix, Inc.