|
Last change
on this file since d1ecb94 was 8973acd, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
No more warnings in libcio.
|
-
Property mode
set to
100644
|
|
File size:
404 bytes
|
| Rev | Line | |
|---|
| [f40a309] | 1 | /*
|
|---|
| 2 | ============================================================================
|
|---|
| 3 | ungetc.c -- 'unget' a character
|
|---|
| 4 | Version 2 -- 1987-06-26 -- D.N. Lynx Crowe
|
|---|
| 5 | ============================================================================
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| [b28a12e] | 8 | #include "ram.h"
|
|---|
| [f40a309] | 9 |
|
|---|
| [7258c6a] | 10 | int16_t ungetc(int16_t c, FILE *ptr)
|
|---|
| [f40a309] | 11 | {
|
|---|
| 12 | if ((c EQ EOF) OR (ptr->_bp LE ptr->_buff))
|
|---|
| 13 | return(EOF);
|
|---|
| 14 |
|
|---|
| [8973acd] | 15 | *--ptr->_bp = (int8_t)c;
|
|---|
| [f40a309] | 16 |
|
|---|
| 17 | return(c);
|
|---|
| 18 | }
|
|---|
| [6262b5c] | 19 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.