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
/
gets.c
File editor
#include <stdio.h> char * gets(char *str) /* BAD function; DON'T use it! */ { /* Auwlright it will work but of course _your_ program will crash */ /* if it's given a too long line */ register char *p = str; register int c; while (((c = getc(stdin)) != EOF) && (c != '\n')) *p++ = c; *p = '\0'; return (((c == EOF) && (p == str)) ? NULL : str); /* NULL == 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