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
/
setbuffer.c
File editor
#include <stdio.h> #include <stdlib.h> void setbuffer(FILE *fp, char *buf, int size) { fflush(fp); if( fp->mode & __MODE_FREEBUF ) free(fp->bufstart); fp->mode &= ~(__MODE_FREEBUF|__MODE_BUF); if( buf == 0 ) { fp->bufstart = fp->unbuf; fp->bufend = fp->unbuf + sizeof(fp->unbuf); fp->mode |= _IONBF; } else { fp->bufstart = (unsigned char *)buf; fp->bufend = (unsigned char *)buf+size; fp->mode |= _IOFBF; } fp->bufpos = fp->bufread = fp->bufwrite = fp->bufstart; }
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