From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 7 Jun 2005 17:59:46 +0400 From: "Dmitry V. Levin" To: ALT Linux general discussion list Subject: Re: [Comm] [BUG] feof() =?koi8-r?B?ySDE?= =?koi8-r?B?1cLMydLP18HOycUg0M/TzMXEzsXKINPU0s/LyQ==?= Message-ID: <20050607135946.GA6382@basalt.office.altlinux.org> References: <20050607133736.GA4274@mycomp.mydomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20050607133736.GA4274@mycomp.mydomain> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 13:59:47 -0000 Archived-At: List-Archive: List-Post: --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 07, 2005 at 08:37:36PM +0700, php-coder wrote: > =F7=CF=D4 =DA=C1=CD=C5=D4=C9=CC =D4=D5=D4, =DE=D4=CF =D0=D2=CF=D3=D4= =C5=CA=DB=C9=CA =D0=D2=C9=CD=C5=D2=DE=C9=CB =CE=C1 =F3=D1=C8 =D2=C1=C2=CF= =D4=C1=C5=D4 =CF=DE=C5=CE=D8 > =D3=D4=D2=C1=CE=CE=CF, =C9 =C4=C1=D6=C5, =D0=D2=D1=CD=CF =D4=C1=CB=C9= =D3=CB=C1=D6=C5=CD, =CE=C5=CF=D6=C9=C4=C1=CE=CE=CF. =E4=C5=CC=CF =D7 =D4= =CF=CD, =DE=D4=CF > =D3=DE=C9=D4=D9=D7=C1=C5=D4=D3=D1 =CC=C9=DB=CE=D1=D1 =D3=D4=D2=CF=DE= =CB=C1, =D4.=C5. =D0=CF=D3=CC=C5=C4=CE=CE=D1 =D3=D4=D2=CF=CB=C1 =C6=C1=CA= =CC=C1 =D0=CF =CE=C5=D7=C5=C4=CF=CD=CF=CA > =CD=CE=C5 =D0=D2=C9=DE=C9=CE=C5 =D3=DE=C9=D4=D9=D7=C1=C5=D4=D3=D1 =C4= =D7=C1=D6=C4=D9. >=20 > [c0der@mycomp ~]$ cat test.c > #include > int main() > { > char str[100]; > FILE *fd; >=20 > fd =3D fopen("test.txt", "r"); > =20 > while(! (feof(fd))) { > fscanf(fd, "%s", str); > printf("%s\n", str); > } > fclose(fd); >=20 > return 0; > } >=20 > [c0der@mycomp ~]$ cat test.txt > 1 > 2 > 3 > [c0der@mycomp ~]$ ./test > 1 > 2 > 3 > 3 > =20 > =EF=C2=DF=D1=D3=CE=C9=D4=C5 =DE=D4=CF =D0=D2=CF=C9=D3=C8=CF=C4=C9=D4,= =D0=CF=D6=C1=CC=D5=CA=D3=D4=C1.. :-) =F0=D2=CF=C9=D3=C8=CF=C4=C9=D4 =CE=C5=D0=CF=CE=C9=CD=C1=CE=C9=C5 =D3=D4=C1= =CE=C4=C1=D2=D4=CE=CF=CA =C2=C9=C2=CC=C9=CF=D4=C5=CB=C9 =D1=DA=D9=CB=C1 C. =F7=D9 =D3=CE=C1=DE=C1=CC=C1 =D0=D2=CF=D7=C5=D2=D1=C5=D4=C5 =D3=CF=D3=D4=CF= =D1=CE=C9=C5 =D0=CF=D4=CF=CB=C1, =C1 =D0=CF=D4=CF=CD =DE=C9=D4=C1=C5=D4=C5 = =C9=DA =D0=CF=D4=CF=CB=C1 =C9 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4=C5 =D1=CB=CF=C2=D9 =D0=D2=CF=DE=C9=D4=C1=CE= =CE=CF=C5 =C2=C5=DA =D0=D2=CF=D7=C5=D2=CB=C9 =D2=C5=DA=D5=CC=D8=D4=C1=D4=C1= =CF=D0=C5=D2=C1=C3=C9=C9 =DE=D4=C5=CE=C9=D1. =E4=CC=D1 =D0=D2=CF=D1=D3=CE=C5=CE=C9=D1 =CB=C1=D2=D4=C9=CE=D9 =C4=CF=C2=C1= =D7=D8=D4=C5 memset(str,0,sizeof str) =D0=C5=D2=C5=C4 =D7=D9=DA=CF=D7=CF=CD= fscanf(). =E9 =D7=CF=CF=C2=DD=C5, =CE=C5 =C9=D3=D0=CF=CC=D8=DA=D5=CA=D4=C5 fscanf() = =D4=C1=CB=C9=CD =CF=C2=D2=C1=DA=CF=CD. --=20 ldv --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCpahR9viEa8HiNCkRAq9RAJ9FZ890VNsgyMUSLAvW7QTwx66lYgCgg8Cz Q0BV6ZXaFNkEM9JdkzcBuVc= =01xv -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--