elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
libc
/
stdio
/
ungetc.c
File editor
#include <stdio.h> int ungetc(int c, FILE * fp) { if (fp->mode & __MODE_WRITING) fflush(fp); /* Can't read or there's been an error then return EOF */ if ((fp->mode & (__MODE_READ | __MODE_ERR)) != __MODE_READ) return EOF; /* Can't do fast fseeks */ fp->mode |= __MODE_UNGOT; if( fp->bufpos > fp->bufstart ) return *--fp->bufpos = (unsigned char) c; else if( fp->bufread == fp->bufstart ) return *fp->bufread++ = (unsigned char) c; else return EOF; }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history