
/* Copyright Massachusetts Institute of Technology 1990,1991 */

#ifndef lint
static char rcsid[] = "$Header: stream2chan.c,v 1.2 91/06/06 13:57:10 dcurtis Exp $";
#endif lint
/* $Log:	stream2chan.c,v $
 * Revision 1.2  91/06/06  13:57:10  dcurtis
 * added copyright notice
 * 
 * Revision 1.1  91/02/04  23:21:42  mtv
 * Initial revision
 * 
 */


/*						*/
/*						*/
/*		IMPLEMENTATION OF		*/
/*			stream2chan		*/
/*						*/

#include "pclu_err.h"
#include "pclu_sys.h"

errcode stream2chan(st, ans)
CLUREF st, *ans;
{
errcode err;
CLUREF temp;

	err = streamOPget_chan(st, &temp);
	if (err == ERR_not_possible) signal(err);
	if (err != ERR_ok) resignal(err);
	*ans = temp;
	signal(ERR_ok);
	}
