This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
fgets problem
- From: Aaron Richardson <aarichar at cisco dot com>
- To: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 26 Jun 2003 15:58:49 -0500
- Subject: [ECOS] fgets problem
- Reply-to: aarichar at cisco dot com
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