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
/
fgets.c
File editor
#include <stdio.h> char * fgets(char *s, size_t count, FILE *f) { char *ret; register size_t i; register int ch; if (count == 0) return 0; ret = s; for (i = count-1; i > 0; i--) { ch = getc(f); if (ch == EOF) { if (s == ret) return 0; break; } *s++ = (char) ch; if (ch == '\n') break; } *s = 0; if (ferror(f)) return 0; return ret; }
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