xdr_char() routine

Mike Walker mike at cfdl.larc.nasa.gov
Thu Mar 23 23:24:45 AEST 1989


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 at 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



More information about the Comp.sys.sun mailing list