11 #ifndef GETS_NOOVERFLOW_H
12 #define GETS_NOOVERFLOW_H
35 char *
result = fgets(buffer, buffersize, stdin);
41 char *delim = strchr(buffer, 0);
43 char *last_read = delim-1;
44 if (last_read[0] ==
'\n') {
49 if (c != EOF && c !=
'\n') {
53 while (c != EOF && c !=
'\n');
63 #error gets_noOverflow.h included twice
64 #endif // GETS_NOOVERFLOW_H
char buffer[MESSAGE_BUFFERSIZE]
static char * gets_noOverflow(char *buffer, int buffersize)