[uClibc]fscanf issue.
Erik Andersen
andersen at codepoet.org
Wed May 14 05:52:34 UTC 2003
On Tue May 13, 2003 at 02:15:06PM -0700, Fabrice Gautier wrote:
> Hi,
>
> fscanf on uclibc seems to behave differently from the glibc one.
>
> Here is my test program, it just open a file and scan the characters in it:
>
> f=fopen("client.dat", "rb");
>
> for(i=0; i<48; i++) {
> printf("[%2d] ", i);
> if(fscanf(f,"%c", &tab[i])!=1) {
> printf("oops.. fscanf failed\n");
> return 1;
> }
> printf("%02x\n",tab[i]);
> }
I spoke with Manuel about this and he was looking into the
failure -- apparently caused by a failure to properly seek
on a fmemopen'ed FILE stream.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list