Article View: comp.sys.sun
Article #11673Re: xdr_char() routine
From: Mike Walker
Date: Thu, 23 Mar 1989 13:24
Date: Thu, 23 Mar 1989 13:24
29 lines
1178 bytes
1178 bytes
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
Technical Details
Message-ID:
<MIKE.89Mar8200806@cfdl.larc.nasa.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!rice!sun-spots-requestReferences:
<785@cs-spool.calgary.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MIKE.89Mar8200806@cfdl.larc.nasa.gov> 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