/*
 * 5799-WZQ (C) COPYRIGHT = NONE
 * LICENSED MATERIALS - PROPERTY OF IBM
 */
/* $Header:cputc.c 12.0$ */
/* $ACIS:cputc.c 12.0$ */
/* $Source: /ibm/acis/usr/src/ibm/rvd/lib/RCS/cputc.c,v $ */

#ifndef lint
static char *rcsid = "$Header:cputc.c 12.0$";
#endif


#ifndef lint
static char rcsid_cputc_c[] = "$Header:cputc.c 12.0$";
#endif lint

/* Copyright 1984 by the Massachusetts Institute of Technology */
/* See permission and disclaimer notice in the file "notice.h" */
#include "notice.h"

/* This file contains routines to perform canonicalized string functions.
 */

#include	<stdio.h>
#include	<ctype.h>
#include	<varargs.h>

#include	"rvd_types.h"
#include	"ctl_pkt.h"


cputc(c, stm)

/* Put the specified character, in a canonicalized form, out to the
 * specified stream.
 */

register char	c;			/* character to output */
register FILE	*stm;			/* stream to output to */
{
	if (needesc(c))
		(void)putc(QUOTE, stm);
	(void)putc(c, stm);
}
