Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!rice!sun-spots-request From: mike@cfdl.larc.nasa.gov (Mike Walker) Newsgroups: comp.sys.sun Subject: Re: xdr_char() routine Keywords: Software Message-ID: Date: 23 Mar 89 13:24:45 GMT References: <785@cs-spool.calgary.UUCP> Sender: usenet@rice.edu Organization: NASA Langley Research Center, Hampton, Va. 23665 Lines: 29 Approved: Sun-Spots@rice.edu Original-Date: 9 Mar 89 02:08:06 GMT X-Sun-Spots-Digest: Volume 7, Issue 208, message 4 of 22 Here is the actual xdr_char function from the SUNRPC 4.0 distribution: /* * XDR a char */ bool_t xdr_char(xdrs, cp) XDR *xdrs; char *cp; { int i; i = (*cp); if (!xdr_int(xdrs, &i)) { return (FALSE); } *cp = i; return (TRUE); } The entire (source) of 4.0 is or soon will be available for ftp from titan.rice.edu (and others no doubt.) Mike -- Mike Walker mike@cfdl.larc.nasa.gov NASA Langley Research Center [128.155.24.55] Bldg. 1192D, Mailstop 159 Work: (804) 864-6804 Hampton, Virginia. 23665 Home: (804) 865-0325