Search found 1 match

by muthukumaran
Tue Oct 25, 2005 11:54 am
Forum: C
Topic: Endless string input
Replies: 3
Views: 4805

Endless string input

hi all,

i have a query.

how to get endless string inputs from user terminal until end of file is issued.
i tried the following piece of code. but it recognises EOF only when it is given as a fresh input in a new line

int main()
{
char a[81];

while( (fgets(a,80,stdin)) != NULL) // continue ...

Go to advanced search