putwc.c revision 1.1
11.1Syamt/* $NetBSD: putwc.c,v 1.1 2001/12/07 11:47:43 yamt Exp $ */
21.1Syamt
31.1Syamt/*-
41.1Syamt * Copyright (c)2001 Citrus Project,
51.1Syamt * All rights reserved.
61.1Syamt *
71.1Syamt * Redistribution and use in source and binary forms, with or without
81.1Syamt * modification, are permitted provided that the following conditions
91.1Syamt * are met:
101.1Syamt * 1. Redistributions of source code must retain the above copyright
111.1Syamt *    notice, this list of conditions and the following disclaimer.
121.1Syamt * 2. Redistributions in binary form must reproduce the above copyright
131.1Syamt *    notice, this list of conditions and the following disclaimer in the
141.1Syamt *    documentation and/or other materials provided with the distribution.
151.1Syamt *
161.1Syamt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
171.1Syamt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
181.1Syamt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
191.1Syamt * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
201.1Syamt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
211.1Syamt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
221.1Syamt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
231.1Syamt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
241.1Syamt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
251.1Syamt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261.1Syamt * SUCH DAMAGE.
271.1Syamt *
281.1Syamt * $Citrus$
291.1Syamt */
301.1Syamt
311.1Syamt#include <stdio.h>
321.1Syamt#include <wchar.h>
331.1Syamt
341.1Syamt/*
351.1Syamt * A subroutine version of the macro putwc.
361.1Syamt */
371.1Syamt#undef putwc
381.1Syamt
391.1Syamtwint_t
401.1Syamtputwc(wint_t wc, FILE *fp)
411.1Syamt{
421.1Syamt
431.1Syamt	return fputwc(wc, fp);
441.1Syamt}
45