Last change
on this file since 4aa78b2 was b28a12e, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Zero redundant declarations.
|
-
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 "ram.h"
|
---|
9 |
|
---|
10 | int16_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.