[ECOS] fgets problem

Aaron Richardson aarichar@cisco.com
Thu Jun 26 21:00:00 GMT 2003


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



More information about the Ecos-discuss mailing list