getc.c revision 1574
1199482Srdivacky/*- 2199482Srdivacky * Copyright (c) 1990, 1993 3199482Srdivacky * The Regents of the University of California. All rights reserved. 4199482Srdivacky * 5199482Srdivacky * This code is derived from software contributed to Berkeley by 6199482Srdivacky * Chris Torek. 7199482Srdivacky * 8199482Srdivacky * Redistribution and use in source and binary forms, with or without 9199482Srdivacky * modification, are permitted provided that the following conditions 10199482Srdivacky * are met: 11199482Srdivacky * 1. Redistributions of source code must retain the above copyright 12199482Srdivacky * notice, this list of conditions and the following disclaimer. 13199482Srdivacky * 2. Redistributions in binary form must reproduce the above copyright 14199482Srdivacky * notice, this list of conditions and the following disclaimer in the 15199482Srdivacky * documentation and/or other materials provided with the distribution. 16199482Srdivacky * 3. All advertising materials mentioning features or use of this software 17199482Srdivacky * must display the following acknowledgement: 18199482Srdivacky * This product includes software developed by the University of 19199482Srdivacky * California, Berkeley and its contributors. 20199482Srdivacky * 4. Neither the name of the University nor the names of its contributors 21199482Srdivacky * may be used to endorse or promote products derived from this software 22199482Srdivacky * without specific prior written permission. 23199482Srdivacky * 24199482Srdivacky * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25199482Srdivacky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26199482Srdivacky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27199482Srdivacky * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28199482Srdivacky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29199482Srdivacky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30199482Srdivacky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31199482Srdivacky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32199482Srdivacky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33199482Srdivacky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34199482Srdivacky * SUCH DAMAGE. 35199482Srdivacky */ 36199482Srdivacky 37199482Srdivacky#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)getc.c 8.1 (Berkeley) 6/4/93"; 39#endif /* LIBC_SCCS and not lint */ 40 41#include <stdio.h> 42 43/* 44 * A subroutine version of the macro getc. 45 */ 46#undef getc 47 48getc(fp) 49 register FILE *fp; 50{ 51 return (__sgetc(fp)); 52} 53