Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ogicse!milton!etb From: etb@milton.u.washington.edu (Eric Bushnell) Newsgroups: comp.sys.apollo Subject: function prototype mystery? Message-ID: <1991Apr11.164655.17092@milton.u.washington.edu> Date: 11 Apr 91 16:46:55 GMT Sender: etb@milton.u.washington.edu (Eric Bushnell) Organization: University of Washington, Seattle Lines: 33 I don't understand the argument declarations used in the following function prototype. Could someone give me a clue? I tried RTFM, with no luck. I'm using the apollo system call proc2_$get_info(), which is defined in proc2.h as: void proc2_$get_info( uid_$t &p2_uid, proc2_$info_t *info, pinteger &info_buf_len, /* size of info buffer (bytes) */ status_$t *sts ); What do the &'s do to the first and third arguments? It looks to me like the function expects addresses, but if I pass addresses to it, the compiler (cc 6.7.m, OS10.3) complains that the argument type conflicts with the declaration. What works is something like proc2_$get_info(p2_uid,&info,bufferlength,&status).Why? Is this some kind of apollo-ism, or something ANSI-like? Thanks, as always Eric Bushnell UW Civil Engineering etb@u.washington.edu -- Eric Bushnell Univ of Washington Civil Engineering etb@zeus.ce.washington.edu etb@milton.u.washington.edu