Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!nsc!pyramid!athertn!joshua From: joshua@athertn.Atherton.COM (Flame Bait) Newsgroups: comp.protocols.nfs Subject: XDR for array of strings terminated by NULL Message-ID: <25980@joshua.athertn.Atherton.COM> Date: 28 Jun 90 20:22:43 GMT Reply-To: joshua@Atherton.COM (Flame Bait) Organization: Atherton Technology, Sunnyvale, CA Lines: 13 I'm looking for an XDR routine which will handle a null terminated array of strings. This is argv's and envp's type on modern UNIX systems. An example is char *envp[] = { "first", "second", NULL } ; I suspect that the answer is a combination of xdr_array, xdr_pointer, and xdr_wrapstring, but I can't quite get them together correctly. Obviously, this problem can be worked around using a count (this is an example in the XDR documentation), but the program I have now uses a null terminated array, and it would be nice not to change it. Thanks for any help. I'll sumarize to the group if I get good answers. Joshua Levy (joshua@atherton.com) (408) 734-9822