source: buchla-68k/libcio/ungetc.c

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

No more warnings in libcio.

  • Property mode set to 100644
File size: 404 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 "ram.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 = (int8_t)c;
16
17 return(c);
18}
19
Note: See TracBrowser for help on using the repository browser.