This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fgets problem


I have problems with fgets.  Here is a simple program that I am using that 
reproduces my problem:

#include <stdio.h>
int main(void)
{
 char s[255];
		
 printf("Hello, eCos world!\n>");

 while(1) {
	fgets(s, 255, stdin);
	printf("You typed: %s\n>", s);
 }
 
 return 0;
}

The code seems to lockup in the fgets.  Any ideas on where to begin fixing 
this?

thanks,
-- 


Aaron Richardson
aarichar@cisco.com
512-378-1286


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]