source: buchla-68k/libcio/ungetc.c@ 6262b5c

Last change on this file since 6262b5c was 6262b5c, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added include files for global functions and variables.

  • Property mode set to 100644
File size: 396 bytes
Line 
1/*
2 ============================================================================
3 ungetc.c -- 'unget' a character
4 Version 2 -- 1987-06-26 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8#include "all.h"
9
10int16_t ungetc(int16_t c, FILE *ptr)
11{
12 if ((c EQ EOF) OR (ptr->_bp LE ptr->_buff))
13 return(EOF);
14
15 *--ptr->_bp = c;
16
17 return(c);
18}
19
Note: See TracBrowser for help on using the repository browser.